summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDeepak R Varma <drv@mailo.com>2022-12-11 16:55:08 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2022-12-20 11:26:18 +0300
commit2306f5d042e479806c3dae3044b3ebbc475118de (patch)
treee76ab156d4191e5e73dae77233de080d625ca949 /drivers/gpu/drm
parent5f70ba0243a9ec8fa783dfa0454965c8ef543b66 (diff)
downloadlinux-2306f5d042e479806c3dae3044b3ebbc475118de.tar.xz
drm/sprd: remove redundant error logging
A call to platform_get_irq() already prints an error on failure within its own implementation. So printing another error based on its return value in the caller is redundant and should be removed. The clean up also makes if condition block braces unnecessary. Remove that as well. Issue identified using platform_get_irq.cocci coccicheck script. Signed-off-by: Deepak R Varma <drv@mailo.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/Y5XhPJ39ipMCcctq@qemulion
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/sprd/sprd_dpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c
index 88f4259680f1..db0bcea1d9f4 100644
--- a/drivers/gpu/drm/sprd/sprd_dpu.c
+++ b/drivers/gpu/drm/sprd/sprd_dpu.c
@@ -803,10 +803,8 @@ static int sprd_dpu_context_init(struct sprd_dpu *dpu,
}
ctx->irq = platform_get_irq(pdev, 0);
- if (ctx->irq < 0) {
- dev_err(dev, "failed to get dpu irq\n");
+ if (ctx->irq < 0)
return ctx->irq;
- }
/* disable and clear interrupts before register dpu IRQ. */
writel(0x00, ctx->base + REG_DPU_INT_EN);