Skip to content

Commit

Permalink
mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guobin Huang authored and David S. Miller committed Mar 29, 2021
1 parent 8d93a4f commit 8e99ca3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/mediatek/mt76/mt7615/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e99ca3

Please sign in to comment.