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 <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>
This commit is contained in:
Yang Yingliang 2021-04-01 12:30:15 +02:00 коммит произвёл Mauro Carvalho Chehab
Родитель dd5467909a
Коммит f274245b57
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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); sc->base = devm_ioremap_resource(&pdev->dev, sc->res);
if (IS_ERR(sc->base)) { if (IS_ERR(sc->base))
dev_err(&pdev->dev, "failed to ioremap\n");
return ERR_CAST(sc->base); return ERR_CAST(sc->base);
}
return sc; return sc;
} }