Skip to content

Commit b2df430

Browse files
weiyjdavem330
authored andcommitted
drivers: net: phy: xgene: Remove redundant dev_err call in xgene_mdio_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <[email protected]> Acked-By: Iyappan Subramanian <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6b65bc2 commit b2df430

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/phy/mdio-xgene.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,8 @@ static int xgene_mdio_probe(struct platform_device *pdev)
345345

346346
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
347347
csr_base = devm_ioremap_resource(dev, res);
348-
if (IS_ERR(csr_base)) {
349-
dev_err(dev, "Unable to retrieve mac CSR region\n");
348+
if (IS_ERR(csr_base))
350349
return PTR_ERR(csr_base);
351-
}
352350
pdata->mac_csr_addr = csr_base;
353351
pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET;
354352
pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET;

0 commit comments

Comments
 (0)