Commit 803e66f4 authored by Chi Minghao's avatar Chi Minghao Committed by Rob Clark

drm/msm: remove unneeded variable

Fix the following coccicheck REVIEW:
./drivers/gpu/drm/msm/edp/edp_ctrl.c:1245:5-8 Unneeded variable
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarChi Minghao <chi.minghao@zte.com.cn>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210831115127.18236-1-chi.minghao@zte.com.cnSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 885455d6
...@@ -1243,8 +1243,6 @@ bool msm_edp_ctrl_panel_connected(struct edp_ctrl *ctrl) ...@@ -1243,8 +1243,6 @@ bool msm_edp_ctrl_panel_connected(struct edp_ctrl *ctrl)
int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl, int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl,
struct drm_connector *connector, struct edid **edid) struct drm_connector *connector, struct edid **edid)
{ {
int ret = 0;
mutex_lock(&ctrl->dev_mutex); mutex_lock(&ctrl->dev_mutex);
if (ctrl->edid) { if (ctrl->edid) {
...@@ -1279,7 +1277,7 @@ int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl, ...@@ -1279,7 +1277,7 @@ int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl,
} }
unlock_ret: unlock_ret:
mutex_unlock(&ctrl->dev_mutex); mutex_unlock(&ctrl->dev_mutex);
return ret; return 0;
} }
int msm_edp_ctrl_timing_cfg(struct edp_ctrl *ctrl, int msm_edp_ctrl_timing_cfg(struct edp_ctrl *ctrl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment