mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()
authorGuobin Huang <huangguobin4@huawei.com>
Sat, 27 Mar 2021 09:56:18 +0000 (17:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 01:04:13 +0000 (18:04 -0700)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guobin Huang <huangguobin4@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/mediatek/mt76/mt7615/soc.c

index 9aa5183c7a56eaf742537393e003fbddc04bdef1..be9a69fe1b3828836a0c039e8284400850feea0d 100644 (file)
@@ -40,10 +40,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
                return irq;
 
        mem_base = devm_ioremap_resource(&pdev->dev, res);
-       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);
-       }
 
        return mt7615_mmio_probe(&pdev->dev, mem_base, irq, mt7615e_reg_map);
 }