mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()
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>
This commit is contained in:
Родитель
8d93a4f9cc
Коммит
8e99ca3fdb
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче