Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: sunxi: sun8i-rotate.c: remove useless error message

This fixes the following coccinelle report:

drivers/media/platform/sunxi/sun8i-rotate/sun8i_rotate.c:751:2-9:
line 751 is redundant because platform_get_irq() already prints an error

By removing the useless call to dev_err()

Found using - Coccinelle (http://coccinelle.lip6.fr)

Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Daniel W. S. Almeida and committed by
Mauro Carvalho Chehab
97c6a99b 45f13a57

+1 -4
+1 -4
drivers/media/platform/sunxi/sun8i-rotate/sun8i_rotate.c
··· 747 747 dev->dev = &pdev->dev; 748 748 749 749 irq = platform_get_irq(pdev, 0); 750 - if (irq <= 0) { 751 - dev_err(dev->dev, "Failed to get IRQ\n"); 752 - 750 + if (irq <= 0) 753 751 return irq; 754 - } 755 752 756 753 ret = devm_request_irq(dev->dev, irq, rotate_irq, 757 754 0, dev_name(dev->dev), dev);