diff mbox series

[1/1] drm/pl111: Remove redundant error printing in pl111_amba_probe()

Message ID 20210511120930.5893-1-thunder.leizhen@huawei.com
State New
Headers show
Series [1/1] drm/pl111: Remove redundant error printing in pl111_amba_probe() | expand

Commit Message

Zhen Lei May 11, 2021, 12:09 p.m. UTC
When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.

Therefore, remove the error printing here to simplify code and reduce the
binary size.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 drivers/gpu/drm/pl111/pl111_drv.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.26.0.106.g9fadedd
diff mbox series

Patch

diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
index fa0a737e9dea868..653f426ff166592 100644
--- a/drivers/gpu/drm/pl111/pl111_drv.c
+++ b/drivers/gpu/drm/pl111/pl111_drv.c
@@ -279,7 +279,6 @@  static int pl111_amba_probe(struct amba_device *amba_dev,
 
 	priv->regs = devm_ioremap_resource(dev, &amba_dev->res);
 	if (IS_ERR(priv->regs)) {
-		dev_err(dev, "%s failed mmio\n", __func__);
 		ret = PTR_ERR(priv->regs);
 		goto dev_put;
 	}