drm/tegra: sor: Remove redundant error logging
authorDeepak R Varma <drv@mailo.com>
Wed, 1 Mar 2023 19:48:06 +0000 (01:18 +0530)
committerThierry Reding <treding@nvidia.com>
Tue, 4 Apr 2023 16:04:57 +0000 (18:04 +0200)
commit3105e42c75e0f80a6933e29291a94f669b869dbd
tree960c8abc144675e41e7e9cdf429a2a13182badfd
parent13fcbcb97d05be14c5ada46b5b6cf71f8c96ad50
drm/tegra: sor: 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: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c