[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210407100610.3278802-1-liwei391@huawei.com>
Date: Wed, 7 Apr 2021 18:06:10 +0800
From: Wei Li <liwei391@...wei.com>
To: <huawei.libin@...wei.com>, Xinliang Liu <xinliang.liu@...aro.org>,
"Tian Tao" <tiantao6@...ilicon.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Philipp Zabel <p.zabel@...gutronix.de>,
Thomas Zimmermann <tzimmermann@...e.de>,
Maxime Ripard <maxime@...no.tech>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Emil Velikov <emil.velikov@...labora.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
John Stultz <john.stultz@...aro.org>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>, Hulk Robot <hulkci@...wei.com>,
Wei Li <liwei391@...wei.com>
Subject: [PATCH RESEND -next] 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.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Wei Li <liwei391@...wei.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
index 6dcf9ec05eec..78a792048c42 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
@@ -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))
Powered by blists - more mailing lists