phy: bcm-ns-usb3: Remove redundant dev_err call in bcm_ns_usb3_mdio_probe()
authorHe Ying <heying24@huawei.com>
Thu, 8 Apr 2021 09:08:08 +0000 (05:08 -0400)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Jun 2021 05:30:52 +0000 (11:00 +0530)
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>
drivers/phy/broadcom/phy-bcm-ns-usb3.c

index eb10ffa13a62eb59843f875fb2615263fa7b67bb..b1adaecc26f848e2b39955e1b9f051fd2ed5ab2d 100644 (file)
@@ -215,10 +215,8 @@ static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev)
                return err;
 
        usb3->dmp = devm_ioremap_resource(dev, &res);
-       if (IS_ERR(usb3->dmp)) {
-               dev_err(dev, "Failed to map DMP regs\n");
+       if (IS_ERR(usb3->dmp))
                return PTR_ERR(usb3->dmp);
-       }
 
        usb3->phy = devm_phy_create(dev, NULL, &ops);
        if (IS_ERR(usb3->phy)) {