From 04798aab1257e44bca320a5ed17595dafa4ddb0a Mon Sep 17 00:00:00 2001 From: Dejin Zheng Date: Tue, 28 Apr 2020 22:31:52 +0800 Subject: [PATCH] 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 Signed-off-by: Felix Fietkau --- mt7603/soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mt7603/soc.c b/mt7603/soc.c index cecc1fd3..7463baab 100644 --- a/mt7603/soc.c +++ b/mt7603/soc.c @@ -21,10 +21,8 @@ mt76_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); - } mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt7603_ops, &mt7603_drv_ops);