projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f7e9f
)
scsi: ufs: ufshcd: Remove dev_err() on platform_get_irq() failure
author
YueHaibing
<yuehaibing@huawei.com>
Fri, 1 Nov 2019 14:00:58 +0000
(22:00 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 13 Nov 2019 03:21:34 +0000
(22:21 -0500)
platform_get_irq() will call dev_err() itself on failure, so there is no
need for the driver to also do this. This is detected by coccinelle.
Link:
https://lore.kernel.org/r/20191101140058.23212-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd-pltfrm.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufshcd-pltfrm.c
b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 8d40dc918f4e12a778aefcf3921dcdfc312d3321..76f9be71c31bf744ea3e41f32c8a18b21ee80592 100644
(file)
--- a/
drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/
drivers/scsi/ufs/ufshcd-pltfrm.c
@@
-402,7
+402,6
@@
int ufshcd_pltfrm_init(struct platform_device *pdev,
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(dev, "IRQ resource not available\n");
err = -ENODEV;
goto out;
}