ASoC: tegra-alt: fix the error check

Fix the error check in function tegra210_adsp_app_init(), as return value
is from ERR_PTR this needs to be checked with IS_ERR macro.

Bug 200154983

Change-Id: I951cccf6a65bdfd829da1bd79e2622a40ecf30cd
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/926309
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
This commit is contained in:
Mohan Kumar
2015-12-23 14:13:06 +05:30
committed by Sameer Pujar
parent 870919fc70
commit 56e4b6edb2

View File

@@ -568,7 +568,7 @@ static int tegra210_adsp_app_init(struct tegra210_adsp *adsp,
}
app->info = nvadsp_app_init(app->desc->handle, NULL);
if (!app->info) {
if (IS_ERR_OR_NULL(app->info)) {
dev_err(adsp->dev, "Failed to init app %s(%s).",
app->desc->name, app->desc->fw_name);
return -ENODEV;