]> Git Repo - linux.git/commitdiff
ata: rb532_cf: remove redundant codes
authorgushengxian <[email protected]>
Tue, 22 Jun 2021 11:55:07 +0000 (04:55 -0700)
committerJens Axboe <[email protected]>
Fri, 25 Jun 2021 00:49:01 +0000 (18:49 -0600)
The codes "dev_err(&pdev->dev, "no IRQ resource found\n");" is
redundant because platform_get_irq() already prints an error.

Signed-off-by: gushengxian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
drivers/ata/pata_rb532_cf.c

index 303f8c375b3afbe63e13dc527ff5a99991ba49e1..2e110aefe59b71916fada46367d624a6e28ddb68 100644 (file)
@@ -115,10 +115,8 @@ static int rb532_pata_driver_probe(struct platform_device *pdev)
        }
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(&pdev->dev, "no IRQ resource found\n");
+       if (irq < 0)
                return irq;
-       }
        if (!irq)
                return -EINVAL;
 
This page took 0.057544 seconds and 4 git commands to generate.