Skip to contentSkip to conversation

drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc()

PATCH RESEND New Wei Li 1 participant 1 message Apr 7, 2021

Subsystems (4)
lore
Share & tools
lore

Wei Li

author
#0 lore raw

PATCH RESEND 1/1 drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +1 -3
index 6dcf9ec05eec..78a792048c42 100644
@@ -857,10 +857,8 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev,
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	ctx->base = devm_ioremap_resource(dev, res);
-	if (IS_ERR(ctx->base)) {
-		DRM_ERROR("failed to remap ade io base\n");
+	if (IS_ERR(ctx->base))
 		return ERR_PTR(-EIO);
-	}
 
 	ctx->reset = devm_reset_control_get(dev, NULL);
 	if (IS_ERR(ctx->reset))