Commit aa4df9bf authored by Sean Paul's avatar Sean Paul Committed by Rob Clark

drm/msm: dpu: Clean up _dpu_core_video_mode_intf_connected()

Local variable is not needed and condition can't be hit.
Reviewed-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 0841851f
...@@ -65,22 +65,17 @@ static bool _dpu_core_perf_crtc_is_power_on(struct drm_crtc *crtc) ...@@ -65,22 +65,17 @@ static bool _dpu_core_perf_crtc_is_power_on(struct drm_crtc *crtc)
static bool _dpu_core_video_mode_intf_connected(struct drm_crtc *crtc) static bool _dpu_core_video_mode_intf_connected(struct drm_crtc *crtc)
{ {
struct drm_crtc *tmp_crtc; struct drm_crtc *tmp_crtc;
bool intf_connected = false;
if (!crtc)
return intf_connected;
drm_for_each_crtc(tmp_crtc, crtc->dev) { drm_for_each_crtc(tmp_crtc, crtc->dev) {
if ((dpu_crtc_get_intf_mode(tmp_crtc) == INTF_MODE_VIDEO) && if ((dpu_crtc_get_intf_mode(tmp_crtc) == INTF_MODE_VIDEO) &&
_dpu_core_perf_crtc_is_power_on(tmp_crtc)) { _dpu_core_perf_crtc_is_power_on(tmp_crtc)) {
DPU_DEBUG("video interface connected crtc:%d\n", DPU_DEBUG("video interface connected crtc:%d\n",
tmp_crtc->base.id); tmp_crtc->base.id);
intf_connected = true; return true;
return intf_connected;
} }
} }
return intf_connected; return false;
} }
static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms,
......
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