Skip to contentSkip to conversation

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

PATCH New Zhen Lei 1 participant 1 message May 11, 2021

Subsystems (3)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

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

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.

---
 drivers/gpu/drm/pl111/pl111_drv.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/pl111/pl111_drv.c +0 -1
index fa0a737e9dea868..653f426ff166592 100644
@@ -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;
 	}
Signature · 1 line
2.26.0.106.g9fadedd