ata: sata_highbank: Remove unnecessary print function dev_err()
authorXu Wang <vulab@iscas.ac.cn>
Fri, 5 Nov 2021 01:50:21 +0000 (01:50 +0000)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 11 Nov 2021 01:55:32 +0000 (10:55 +0900)
The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/sata_highbank.c

index 8440203..b29d3f1 100644 (file)
@@ -469,10 +469,8 @@ static int ahci_highbank_probe(struct platform_device *pdev)
        }
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(dev, "no irq\n");
+       if (irq < 0)
                return irq;
-       }
        if (!irq)
                return -EINVAL;