OSDN Git Service

mt76: mt7603: remove duplicate error message
authorDejin Zheng <zhengdejin5@gmail.com>
Tue, 28 Apr 2020 14:31:52 +0000 (22:31 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:33 +0000 (19:52 +0200)
it will print an error message by itself when
devm_platform_ioremap_resource() goes wrong. so remove the duplicate
error message.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/soc.c

index 68efb30..de17076 100644 (file)
@@ -20,10 +20,8 @@ mt76_wmac_probe(struct platform_device *pdev)
                return irq;
 
        mem_base = devm_platform_ioremap_resource(pdev, 0);
-       if (IS_ERR(mem_base)) {
-               dev_err(&pdev->dev, "Failed to get memory resource\n");
+       if (IS_ERR(mem_base))
                return PTR_ERR(mem_base);
-       }
 
        mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt7603_ops,
                                 &mt7603_drv_ops);