media: ti-vpe: sc: remove redundant dev_err call in sc_create()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 1 Apr 2021 10:30:15 +0000 (12:30 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 14:09:31 +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/sc.c

index 98f95082a6fd81581b6a846f50c7a89dbd525b43..0202d278523fb37a338328568f64fd88e9513c0f 100644 (file)
@@ -294,10 +294,8 @@ struct sc_data *sc_create(struct platform_device *pdev, const char *res_name)
        }
 
        sc->base = devm_ioremap_resource(&pdev->dev, sc->res);
-       if (IS_ERR(sc->base)) {
-               dev_err(&pdev->dev, "failed to ioremap\n");
+       if (IS_ERR(sc->base))
                return ERR_CAST(sc->base);
-       }
 
        return sc;
 }