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

mmc: sdhci-milbeaut: Remove redundant platform_get_irq error message

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.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200116144322.57308-1-yuehaibing@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

YueHaibing and committed by
Ulf Hansson
557c0315 1215c025

+1 -3
+1 -3
drivers/mmc/host/sdhci-milbeaut.c
··· 246 246 struct f_sdhost_priv *priv; 247 247 248 248 irq = platform_get_irq(pdev, 0); 249 - if (irq < 0) { 250 - dev_err(dev, "%s: no irq specified\n", __func__); 249 + if (irq < 0) 251 250 return irq; 252 - } 253 251 254 252 host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv)); 255 253 if (IS_ERR(host))