[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1616838978-6420-1-git-send-email-huangguobin4@huawei.com>
Date: Sat, 27 Mar 2021 17:56:18 +0800
From: Huang Guobin <huangguobin4@...wei.com>
To: <huangguobin4@...wei.com>, Felix Fietkau <nbd@....name>,
Lorenzo Bianconi <lorenzo.bianconi83@...il.com>,
Kalle Valo <kvalo@...eaurora.org>,
"Jakub Kicinski" <kuba@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
"Markus Elfring" <elfring@...rs.sourceforge.net>,
"David S. Miller" <davem@...emloft.net>
CC: <linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<kernel-janitors@...r.kernel.org>
Subject: [PATCH net-next] mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()
From: Guobin Huang <huangguobin4@...wei.com>
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@...wei.com>
Signed-off-by: Guobin Huang <huangguobin4@...wei.com>
---
drivers/net/wireless/mediatek/mt76/mt7615/soc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/soc.c b/drivers/net/wireless/mediatek/mt76/mt7615/soc.c
index 9aa5183c7a56..be9a69fe1b38 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/soc.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/soc.c
@@ -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);
}
Powered by blists - more mailing lists