drm/sprd: remove redundant error logging
authorDeepak R Varma <drv@mailo.com>
Sun, 11 Dec 2022 13:55:08 +0000 (19:25 +0530)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 20 Dec 2022 08:26:18 +0000 (09:26 +0100)
commit2306f5d042e479806c3dae3044b3ebbc475118de
treee76ab156d4191e5e73dae77233de080d625ca949
parent5f70ba0243a9ec8fa783dfa0454965c8ef543b66
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
drivers/gpu/drm/sprd/sprd_dpu.c