summaryrefslogtreecommitdiff
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorYihao Han <hanyihao@vivo.com>2022-03-10 10:40:59 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-04-24 09:30:34 +0300
commit82b4737fd001247527405b19045c25bf1622ab6d (patch)
tree36729ad0135d1151a4a2f4f213ffe9d98fd1e238 /drivers/media/rc
parent3d59142ad94cf60b94b3dc94c19fdafa23aec8b1 (diff)
downloadlinux-82b4737fd001247527405b19045c25bf1622ab6d.tar.xz
media: meson-ir-tx: remove superfluous dev_err()
Remove dev_err() messages after platform_get_irq*() failures. platform_get_irq() already prints an error. Generated by: scripts/coccinelle/api/platform_get_irq.cocci Signed-off-by: Yihao Han <hanyihao@vivo.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/meson-ir-tx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/rc/meson-ir-tx.c b/drivers/media/rc/meson-ir-tx.c
index 63e1dbf0a4e9..abdb62b16e98 100644
--- a/drivers/media/rc/meson-ir-tx.c
+++ b/drivers/media/rc/meson-ir-tx.c
@@ -323,10 +323,8 @@ static int __init meson_irtx_probe(struct platform_device *pdev)
return PTR_ERR(ir->reg_base);
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(dev, "no irq resource found\n");
+ if (irq < 0)
return -ENODEV;
- }
ir->dev = dev;
ir->carrier = MIRTX_DEFAULT_CARRIER;