media: imx-pxp: remove redundant dev_err call in pxp_probe()
Subsystems (2)
PATCH 1/1 media: imx-pxp: remove redundant dev_err call in pxp_probe()
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/media/platform/imx-pxp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/media/platform/imx-pxp.c +2 -5
@@ -1654,11 +1654,8 @@ static int pxp_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); dev->mmio =devm_ioremap_resource (&pdev->dev, res); -if (IS_ERR (dev->mmio)) { - ret =PTR_ERR (dev->mmio); -dev_err (&pdev->dev,"Failed to map register space: %d\n" , ret); -return ret; - } +if (IS_ERR (dev->mmio)) +return PTR_ERR (dev->mmio); irq =platform_get_irq (pdev,0 );if (irq <0 )
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 6 lines · Yang Yingliang
There is an error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Reported-by Hulk Robot <[email protected]>Signed-off-by Yang Yingliang <[email protected]>
Thank you,
Reviewed-by Philipp Zabel <[email protected]>
regards
Philipp