Commit f274245b authored by Yang Yingliang's avatar Yang Yingliang Committed by Mauro Carvalho Chehab
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent dd546790
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}