diff options
author | He Ying <heying24@huawei.com> | 2021-04-08 11:08:06 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-06-14 07:30:52 +0200 |
commit | 349f98321121eea3a8f556b85fd1cde5147f6d92 (patch) | |
tree | 0c8a256723f257e356bf2e692d67262e0f2fb021 /drivers/phy | |
parent | phy: bcm-ns-usb3: Remove redundant dev_err call in bcm_ns_usb3_mdio_probe() (diff) | |
download | linux-349f98321121eea3a8f556b85fd1cde5147f6d92.tar.xz linux-349f98321121eea3a8f556b85fd1cde5147f6d92.zip |
phy: phy-mmp3-hsic: Remove redundant dev_err call in mmp3_hsic_phy_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/20210408090806.247325-1-heying24@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/marvell/phy-mmp3-hsic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/marvell/phy-mmp3-hsic.c b/drivers/phy/marvell/phy-mmp3-hsic.c index 47c1e8894939..7cccf01848d8 100644 --- a/drivers/phy/marvell/phy-mmp3-hsic.c +++ b/drivers/phy/marvell/phy-mmp3-hsic.c @@ -47,10 +47,8 @@ static int mmp3_hsic_phy_probe(struct platform_device *pdev) resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_ioremap_resource(dev, resource); - if (IS_ERR(base)) { - dev_err(dev, "failed to remap PHY regs\n"); + if (IS_ERR(base)) return PTR_ERR(base); - } phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops); if (IS_ERR(phy)) { |