CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Huan Feng <[email protected]>
CC: Emil Renner Berthing <[email protected]>

From: kernel test robot <[email protected]>

drivers/char/hw_random/starfive-vic-rng.c:209:2-9: line 209 is redundant 
because platform_get_irq() already prints an error

 Remove dev_err() messages after platform_get_irq*() failures
Generated by: scripts/coccinelle/api/platform_get_irq.cocci

CC: Huan Feng <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://github.com/esmil/linux visionfive
head:   6c7cd35771680c033c40b4af48cbe7e3093eab3d
commit: 1d3f42fdd786e76c5138aff9663180a7f17c68bd [28/62] drivers/hw_random: Add 
StarFive JH7100 Random Number Generator driver
:::::: branch date: 14 hours ago
:::::: commit date: 9 days ago

Please take the patch only if it's a positive warning. Thanks!

 drivers/char/hw_random/starfive-vic-rng.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/char/hw_random/starfive-vic-rng.c
+++ b/drivers/char/hw_random/starfive-vic-rng.c
@@ -206,7 +206,6 @@ static int vic_rng_probe(struct platform
 
        irq = platform_get_irq(pdev, 0);
        if (irq <= 0) {
-               dev_err(&pdev->dev, "Couldn't get irq %d\n", irq);
                return irq;
        }
 
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to