mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
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:
committed by
Sameer Pujar
parent
870919fc70
commit
56e4b6edb2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user