drm/pl111: Remove redundant error printing in pl111_amba_probe()
Subsystems (3)
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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zhen Lei <[email protected]>
--- drivers/gpu/drm/pl111/pl111_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/pl111/pl111_drv.c +0 -1
@@ -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