summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_highbank.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2021-11-05 02:50:21 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2021-11-11 02:55:32 +0100
commit51839e25d43dc6c91d653995a41a3dfc52a21e33 (patch)
tree694206eafd310eb9f00580333b4b925b54e6f6d5 /drivers/ata/sata_highbank.c
parentlibata: fix read log timeout value (diff)
downloadlinux-51839e25d43dc6c91d653995a41a3dfc52a21e33.tar.xz
linux-51839e25d43dc6c91d653995a41a3dfc52a21e33.zip
ata: sata_highbank: Remove unnecessary print function dev_err()
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>
Diffstat (limited to '')
-rw-r--r--drivers/ata/sata_highbank.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c
index 8440203e835e..b29d3f1d64b0 100644
--- a/drivers/ata/sata_highbank.c
+++ b/drivers/ata/sata_highbank.c
@@ -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;