projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68dbbe7
)
ata: sata_highbank: Remove unnecessary print function dev_err()
author
Xu Wang
<vulab@iscas.ac.cn>
Fri, 5 Nov 2021 01:50:21 +0000
(
01:50
+0000)
committer
Damien 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
patch
|
blob
|
history
diff --git
a/drivers/ata/sata_highbank.c
b/drivers/ata/sata_highbank.c
index
8440203
..
b29d3f1
100644
(file)
--- 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;