]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: remove unneeded variable ret
authorBernard Zhao <bernard@vivo.com>
Wed, 7 Apr 2021 13:06:21 +0000 (06:06 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:33:53 +0000 (07:33 -0700)
commit7d21fb8af5db8aec617a001ad87c2a0f25c24634
tree03183ec4b2e40c1700f20eb49b0b08d0125a4f83
parent614f94b5416d3fdc3fb96876092a43872eff57a4
drm/msm: remove unneeded variable ret

This patch fix coccicheck warning:
drivers/gpu/drm/msm/dp/dp_link.c:848:5-8: Unneeded variable: "ret". Return "0" on line 880
Also remove unneeded function return value check.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Link: https://lore.kernel.org/r/20210407130654.3387-1-bernard@vivo.com
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_link.c