diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-11-01 15:00:58 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-13 04:21:34 +0100 |
commit | 70e8d9accd0a9165972031ff51b4f28ee8287c0f (patch) | |
tree | df4f184a82aa64c452130a96c66b36170748640c /drivers/scsi | |
parent | scsi: zorro_esp: Limit DMA transfers to 65536 bytes (except on Fastlane) (diff) | |
download | linux-70e8d9accd0a9165972031ff51b4f28ee8287c0f.tar.xz linux-70e8d9accd0a9165972031ff51b4f28ee8287c0f.zip |
scsi: ufs: ufshcd: Remove dev_err() on platform_get_irq() failure
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ufs/ufshcd-pltfrm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 8d40dc918f4e..76f9be71c31b 100644 --- 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; } |