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

mt76: mt7615: Delete an error message in mt7622_wmac_probe()

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 <elfring@users.sourceforge.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name>

authored by

Markus Elfring and committed by
Felix Fietkau
373ab334 fdb786cc

+1 -3
+1 -3
drivers/net/wireless/mediatek/mt76/mt7615/soc.c
··· 36 36 int irq; 37 37 38 38 irq = platform_get_irq(pdev, 0); 39 - if (irq < 0) { 40 - dev_err(&pdev->dev, "Failed to get device IRQ\n"); 39 + if (irq < 0) 41 40 return irq; 42 - } 43 41 44 42 mem_base = devm_ioremap_resource(&pdev->dev, res); 45 43 if (IS_ERR(mem_base)) {