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:
Laxminath Kasam 2014-07-15 15:59:52 +05:30
parent 0d2b75a7c7
commit 3f7a83bc5a
2 changed files with 2 additions and 2 deletions

View file

@ -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;
};

View file

@ -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;