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);