projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7fb14d
)
ata: rb532_cf: remove redundant codes
author
gushengxian
<gushengxian@yulong.com>
Tue, 22 Jun 2021 11:55:07 +0000
(
04:55
-0700)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_rb532_cf.c
b/drivers/ata/pata_rb532_cf.c
index 303f8c375b3afbe63e13dc527ff5a99991ba49e1..2e110aefe59b71916fada46367d624a6e28ddb68 100644
(file)
--- a/
drivers/ata/pata_rb532_cf.c
+++ b/
drivers/ata/pata_rb532_cf.c
@@
-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;