mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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:
committed by
Sameer Pujar
parent
a1b537c669
commit
d4f3d20ef1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user