Commit 557c0315 authored by YueHaibing's avatar YueHaibing Committed by Ulf Hansson

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: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200116144322.57308-1-yuehaibing@huawei.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 1215c025
...@@ -246,10 +246,8 @@ static int sdhci_milbeaut_probe(struct platform_device *pdev) ...@@ -246,10 +246,8 @@ static int sdhci_milbeaut_probe(struct platform_device *pdev)
struct f_sdhost_priv *priv; struct f_sdhost_priv *priv;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(dev, "%s: no irq specified\n", __func__);
return irq; return irq;
}
host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv)); host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv));
if (IS_ERR(host)) if (IS_ERR(host))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment