Commit 82b4737f authored by Yihao Han's avatar Yihao Han Committed by Mauro Carvalho Chehab

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: default avatarYihao Han <hanyihao@vivo.com>
Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 3d59142a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment