Commit 70e8d9ac authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen
Browse files

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 02f7e9f3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}