diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2019-06-18 12:13:09 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-27 14:21:06 +0300 |
commit | 9e2e4382ec72d9f3a288b4218f684faee7bb3c92 (patch) | |
tree | 1308a4ad7339a5172a27ccf5ac36fdf4f3e183d6 /drivers/media/rc/meson-ir.c | |
parent | b48cb35c6a7babdc317edb4c752ecf3da0691228 (diff) | |
download | linux-9e2e4382ec72d9f3a288b4218f684faee7bb3c92.tar.xz |
media: rc: remove redundant dev_err message
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>
Diffstat (limited to 'drivers/media/rc/meson-ir.c')
-rw-r--r-- | drivers/media/rc/meson-ir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/rc/meson-ir.c b/drivers/media/rc/meson-ir.c index 02914da8cce5..72a7bbbf6b1f 100644 --- a/drivers/media/rc/meson-ir.c +++ b/drivers/media/rc/meson-ir.c @@ -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) { |