ASoC: tegra-alt: Fix coverity issues in amx/adx

Coverity ID: 28085, 28086

Bug 1416640

Change-Id: Ic8fd3b9569d02ebee9225158ca59376b580cbb04
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/606415
Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
Arun Shamanna Lakshmi
2014-11-19 11:55:00 -08:00
committed by Sameer Pujar
parent a1b537c669
commit d4f3d20ef1
2 changed files with 2 additions and 2 deletions

View File

@@ -372,7 +372,7 @@ static int tegra210_adx_set_channel_map(struct snd_soc_dai *dai,
int i, ret = 0;
/* HW needs sw reset to make sure previous transaction be clean */
tegra210_adx_sw_reset(adx, 0xffff);
ret = tegra210_adx_sw_reset(adx, 0xffff);
if (ret) {
dev_err(dev, "Failed at ADX sw reset\n");
return ret;

View File

@@ -400,7 +400,7 @@ static int tegra210_amx_set_channel_map(struct snd_soc_dai *dai,
int i, ret = 0;
/* HW needs sw reset to make sure previous transaction be clean */
tegra210_amx_sw_reset(amx, 0xffff);
ret = tegra210_amx_sw_reset(amx, 0xffff);
if (ret) {
dev_err(dev, "Failed at AMX sw reset\n");
return ret;