Skip to content

Commit

Permalink
mt76: mt7615: Delete an error message in mt7622_wmac_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Elfring authored and Felix Fietkau committed May 12, 2020
1 parent fdb786c commit 373ab33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/mediatek/mt76/mt7615/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 373ab33

Please sign in to comment.