Skip to content

Commit

Permalink
ata: sata_highbank: Remove unnecessary print function dev_err()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xu Wang authored and Damien Le Moal committed Nov 11, 2021
1 parent 68dbbe7 commit 51839e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ata/sata_highbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 51839e2

Please sign in to comment.