media: camss: csid: Remove redundant dev_err call in msm_csid_subdev_init()

There is a 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: Robert Foss <robert.foss@linaro.org>
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-02 11:32:55 +02:00 committed by Mauro Carvalho Chehab
parent 6fe1152a1f
commit 6c0ed6d4b3
1 changed files with 1 additions and 3 deletions

View File

@ -568,10 +568,8 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid,
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
csid->base = devm_ioremap_resource(dev, r);
if (IS_ERR(csid->base)) {
dev_err(dev, "could not map memory\n");
if (IS_ERR(csid->base))
return PTR_ERR(csid->base);
}
/* Interrupt */