mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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 <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
1e8b2fe5ab
commit
ec0ea46dac
+1
-3
@@ -36,10 +36,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
|
|||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq < 0)
|
||||||
dev_err(&pdev->dev, "Failed to get device IRQ\n");
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
|
||||||
|
|
||||||
mem_base = devm_ioremap_resource(&pdev->dev, res);
|
mem_base = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(mem_base)) {
|
if (IS_ERR(mem_base)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user