Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm: dpu: Clean up _dpu_core_video_mode_intf_connected()

Local variable is not needed and condition can't be hit.

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>

authored by

Sean Paul and committed by
Rob Clark
aa4df9bf 0841851f

+2 -7
+2 -7
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
··· 65 65 static bool _dpu_core_video_mode_intf_connected(struct drm_crtc *crtc) 66 66 { 67 67 struct drm_crtc *tmp_crtc; 68 - bool intf_connected = false; 69 - 70 - if (!crtc) 71 - return intf_connected; 72 68 73 69 drm_for_each_crtc(tmp_crtc, crtc->dev) { 74 70 if ((dpu_crtc_get_intf_mode(tmp_crtc) == INTF_MODE_VIDEO) && 75 71 _dpu_core_perf_crtc_is_power_on(tmp_crtc)) { 76 72 DPU_DEBUG("video interface connected crtc:%d\n", 77 73 tmp_crtc->base.id); 78 - intf_connected = true; 79 - return intf_connected; 74 + return true; 80 75 } 81 76 } 82 77 83 - return intf_connected; 78 + return false; 84 79 } 85 80 86 81 static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms,