Skip to content

Commit 0456295

Browse files
Zhen Leidaeinki
authored andcommitted
drm/exynos: Remove redundant error printing in exynos_dsi_probe()
When devm_ioremap_resource() fails, a clear enough error message will be printed by its subfunction __devm_ioremap_resource(). The error information contains the device name, failure cause, and possibly resource information. Therefore, remove the error printing here to simplify code and reduce the binary size. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent b80bfc5 commit 0456295

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/gpu/drm/exynos/exynos_drm_dsi.c

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

17871787
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
17881788
dsi->reg_base = devm_ioremap_resource(dev, res);
1789-
if (IS_ERR(dsi->reg_base)) {
1790-
dev_err(dev, "failed to remap io region\n");
1789+
if (IS_ERR(dsi->reg_base))
17911790
return PTR_ERR(dsi->reg_base);
1792-
}
17931791

17941792
dsi->phy = devm_phy_get(dev, "dsim");
17951793
if (IS_ERR(dsi->phy)) {

0 commit comments

Comments
 (0)