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 02914da8cce536a6b3438934f22989566c4c3700..72a7bbbf6b1f03eb1393be9e8dd5dc53edb93856 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 46101efe017be68b0ca8ce12a5087932ed93eeaa..50fb0aebb8d403ed247bf84ddedffbb51deb78f2 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 a48f685392310cdfff7c8a15fb0c18c18e2a4a95..aa719d0ae6b016fa2057bc4f1498efc8fbf2d045 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;
        }