]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: ti-vpe: csc: remove redundant dev_err call in csc_create()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 1 Apr 2021 10:28:50 +0000 (12:28 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 14:09:16 +0000 (16:09 +0200)
There is an error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/csc.c

index f4e0cf72d1cf293af7f212e379b6f47d28a0c99b..ff15bc589f1bc9951679f63e6179be5df0c6bac9 100644 (file)
@@ -267,10 +267,8 @@ struct csc_data *csc_create(struct platform_device *pdev, const char *res_name)
        }
 
        csc->base = devm_ioremap_resource(&pdev->dev, csc->res);
-       if (IS_ERR(csc->base)) {
-               dev_err(&pdev->dev, "failed to ioremap\n");
+       if (IS_ERR(csc->base))
                return ERR_CAST(csc->base);
-       }
 
        return csc;
 }