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:   996f88ea65b2f557926d7fe73d69fdc2da92430a
commit: 43592cbfb311e82075d50641a6359ed6c0a28ea1 [28/64] drivers/hw_random: Add 
StarFive JH7100 Random Number Generator driver
:::::: branch date: 19 hours ago
:::::: commit date: 4 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