Skip to content

Commit a470c56

Browse files
Zhen Leidaeinki
authored andcommitted
drm/exynos/decon5433: Remove redundant error printing in exynos5433_decon_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 0456295 commit a470c56

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/gpu/drm/exynos/exynos5433_drm_decon.c

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

816816
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
817817
ctx->addr = devm_ioremap_resource(dev, res);
818-
if (IS_ERR(ctx->addr)) {
819-
dev_err(dev, "ioremap failed\n");
818+
if (IS_ERR(ctx->addr))
820819
return PTR_ERR(ctx->addr);
821-
}
822820

823821
ret = decon_conf_irq(ctx, "vsync", decon_irq_handler, 0);
824822
if (ret < 0)

0 commit comments

Comments
 (0)