drm/msm: fix returnvar.cocci warning
authorGuo Zhengkui <guozhengkui@vivo.com>
Mon, 25 Apr 2022 12:22:21 +0000 (20:22 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 1 May 2022 23:39:35 +0000 (02:39 +0300)
commitc102e9fcc2cc10364832972af151a5da0e851465
tree1db422d321e8fac630ee17c7a3b3c769e90b9970
parentb9e4f1d2b505df8e2439b63e67afaa287c1c43e2
drm/msm: fix returnvar.cocci warning

Fix the following coccicheck warning:
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c:24:5-8: Unneeded variable:
"ret". Return "0" on line 75.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/483328/
Link: https://lore.kernel.org/r/20220425122223.7415-1-guozhengkui@vivo.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c