From 5bbc3938f41b5cdde9847a1970f18c7cb0b3d8d0 Mon Sep 17 00:00:00 2001 From: Sumit Bhattacharya Date: Tue, 2 Dec 2014 14:45:20 +0530 Subject: [PATCH] ASoC: tegra-alt: Fix coverity failures Coverity ID: 28084 Bug 1416640 Change-Id: I533cc8c0ca4c35d9f2996390445da6e728796234 Signed-off-by: Sumit Bhattacharya Reviewed-on: http://git-master/r/658366 Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index bede74ce..0b8b05f0 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -298,10 +298,10 @@ static int tegra210_adsp_init(struct tegra210_adsp *adsp) /* Load ADSP audio apps */ for (i = 0; i < ARRAY_SIZE(adsp_app_desc); i++) { - adsp_app_desc[i].handle = nvadsp_app_load( + adsp_app_desc[i].handle = nvadsp_app_load( adsp_app_desc[i].name, adsp_app_desc[i].fw_name); - if (ret < 0) { + if (!adsp_app_desc[i].handle) { dev_err(adsp->dev, "Failed to load app %s", adsp_app_desc[i].name); goto exit;