From ec0ea46dacf9956f5c778ed31bce84647f03210a Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Sun, 5 Apr 2020 16:45:48 +0200 Subject: [PATCH] mt76: mt7615: Delete an error message in mt7622_wmac_probe() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function “platform_get_irq” can log an error already. Thus omit a redundant message for the exception handling in the calling function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Felix Fietkau --- mt7615/soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mt7615/soc.c b/mt7615/soc.c index 43aa4970..9aa5183c 100644 --- a/mt7615/soc.c +++ b/mt7615/soc.c @@ -36,10 +36,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev) int irq; irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "Failed to get device IRQ\n"); + if (irq < 0) return irq; - } mem_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(mem_base)) {