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

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>

authored by

He Ying and committed by
Vinod Koul
349f9832 185ff019

+1 -3
+1 -3
drivers/phy/marvell/phy-mmp3-hsic.c
··· 47 47 48 48 resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); 49 49 base = devm_ioremap_resource(dev, resource); 50 - if (IS_ERR(base)) { 51 - dev_err(dev, "failed to remap PHY regs\n"); 50 + if (IS_ERR(base)) 52 51 return PTR_ERR(base); 53 - } 54 52 55 53 phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops); 56 54 if (IS_ERR(phy)) {