ata: rb532_cf: remove redundant codes
authorgushengxian <gushengxian@yulong.com>
Tue, 22 Jun 2021 11:55:07 +0000 (04:55 -0700)
committerJens Axboe <axboe@kernel.dk>
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 <gushengxian@yulong.com>
Link: https://lore.kernel.org/r/20210622115507.359017-1-13145886936@163.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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;