Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

YueHaibing and committed by
Martin K. Petersen
70e8d9ac 02f7e9f3

-1
-1
drivers/scsi/ufs/ufshcd-pltfrm.c
··· 402 402 403 403 irq = platform_get_irq(pdev, 0); 404 404 if (irq < 0) { 405 - dev_err(dev, "IRQ resource not available\n"); 406 405 err = -ENODEV; 407 406 goto out; 408 407 }