media: rc: remove redundant dev_err message
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Tue, 18 Jun 2019 09:13:09 +0000 (05:13 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 27 Jun 2019 11:21:06 +0000 (07:21 -0400)
devm_ioremap_resource already contains error message, so remove
the redundant dev_err message

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/meson-ir.c
drivers/media/rc/mtk-cir.c
drivers/media/rc/sunxi-cir.c

index 02914da..72a7bbb 100644 (file)
@@ -113,10 +113,8 @@ static int meson_ir_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        ir->reg = devm_ioremap_resource(dev, res);
-       if (IS_ERR(ir->reg)) {
-               dev_err(dev, "failed to map registers\n");
+       if (IS_ERR(ir->reg))
                return PTR_ERR(ir->reg);
-       }
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0) {
index 46101ef..50fb0ae 100644 (file)
@@ -320,10 +320,8 @@ static int mtk_ir_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        ir->base = devm_ioremap_resource(dev, res);
-       if (IS_ERR(ir->base)) {
-               dev_err(dev, "failed to map registers\n");
+       if (IS_ERR(ir->base))
                return PTR_ERR(ir->base);
-       }
 
        ir->rc = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW);
        if (!ir->rc) {
index a48f685..aa719d0 100644 (file)
@@ -195,7 +195,6 @@ static int sunxi_ir_probe(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        ir->base = devm_ioremap_resource(dev, res);
        if (IS_ERR(ir->base)) {
-               dev_err(dev, "failed to map registers\n");
                ret = PTR_ERR(ir->base);
                goto exit_clkdisable_clk;
        }