Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: bcm-ns-usb3: Remove redundant dev_err call in bcm_ns_usb3_mdio_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: He Ying <heying24@huawei.com>
Link: https://lore.kernel.org/r/20210408090808.247368-1-heying24@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

He Ying and committed by
Vinod Koul
185ff019 1ed9e566

+1 -3
+1 -3
drivers/phy/broadcom/phy-bcm-ns-usb3.c
··· 215 215 return err; 216 216 217 217 usb3->dmp = devm_ioremap_resource(dev, &res); 218 - if (IS_ERR(usb3->dmp)) { 219 - dev_err(dev, "Failed to map DMP regs\n"); 218 + if (IS_ERR(usb3->dmp)) 220 219 return PTR_ERR(usb3->dmp); 221 - } 222 220 223 221 usb3->phy = devm_phy_create(dev, NULL, &ops); 224 222 if (IS_ERR(usb3->phy)) {