From: Yang Yingliang Date: Thu, 1 Apr 2021 10:30:15 +0000 (+0200) Subject: media: ti-vpe: sc: remove redundant dev_err call in sc_create() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f274245b5777c7ade7015cd27250f053030bcc6e;p=linux.git media: ti-vpe: sc: remove redundant dev_err call in sc_create() 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 Signed-off-by: Yang Yingliang Reviewed-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/sc.c b/drivers/media/platform/ti-vpe/sc.c index 98f95082a6fd8..0202d278523fb 100644 --- a/drivers/media/platform/ti-vpe/sc.c +++ b/drivers/media/platform/ti-vpe/sc.c @@ -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; }