mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ASoC: update drivers to handle errors correctly
Avoid logical conflicts seen while error handling. Change-Id: I4c6b58bfcbd87f4d764fc6b923bf718e5f642ae5 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
parent
0d2b75a7c7
commit
3f7a83bc5a
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ struct msm_audio_ion_private {
|
|||
bool smmu_enabled;
|
||||
bool audioheap_enabled;
|
||||
struct iommu_group *group;
|
||||
u32 domain_id;
|
||||
int32_t domain_id;
|
||||
struct iommu_domain *domain;
|
||||
};
|
||||
|
||||
|
|
|
@ -3048,7 +3048,7 @@ static ssize_t afe_debug_write(struct file *filp,
|
|||
goto afe_error;
|
||||
}
|
||||
|
||||
if (param[1] < 0 || param[1] > 100) {
|
||||
if (param[1] > 100) {
|
||||
pr_err("%s: Error, volume shoud be 0 to 100 percentage param = %lu\n",
|
||||
__func__, param[1]);
|
||||
rc = -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue