Skip to content

Commit 557c031

Browse files
YueHaibingstorulf
authored andcommitted
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 <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 1215c02 commit 557c031

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/mmc/host/sdhci-milbeaut.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,8 @@ static int sdhci_milbeaut_probe(struct platform_device *pdev)
246246
struct f_sdhost_priv *priv;
247247

248248
irq = platform_get_irq(pdev, 0);
249-
if (irq < 0) {
250-
dev_err(dev, "%s: no irq specified\n", __func__);
249+
if (irq < 0)
251250
return irq;
252-
}
253251

254252
host = sdhci_alloc_host(dev, sizeof(struct f_sdhost_priv));
255253
if (IS_ERR(host))

0 commit comments

Comments
 (0)