[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200428143152.3474-1-zhengdejin5@gmail.com>
Date: Tue, 28 Apr 2020 22:31:52 +0800
From: Dejin Zheng <zhengdejin5@...il.com>
To: nbd@....name, lorenzo.bianconi83@...il.com, ryder.lee@...iatek.com,
royluo@...gle.com, kvalo@...eaurora.org, davem@...emloft.net,
matthias.bgg@...il.com, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Dejin Zheng <zhengdejin5@...il.com>
Subject: [PATCH net v1] net: mt7603: remove duplicate error message
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@...il.com>
---
drivers/net/wireless/mediatek/mt76/mt7603/soc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/soc.c b/drivers/net/wireless/mediatek/mt76/mt7603/soc.c
index 68efb300c0d8..de170765e938 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7603/soc.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7603/soc.c
@@ -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);
--
2.25.0
Powered by blists - more mailing lists