Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7327aa2f authored by Clarence Ip's avatar Clarence Ip
Browse files

drm/msm/sde: add parentheses for inline kickoff



Add explicit parentheses around the if statement and loop
for the sde_plane_kickoff function call. This is needed
to avoid a compiler warning for newer versions of gcc.

Change-Id: I299d0926f2fb5b0187a2447abb6262bbb3fcffc1
Signed-off-by: default avatarClarence Ip <cip@codeaurora.org>
parent f6b530ac
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2292,9 +2292,11 @@ void sde_crtc_commit_kickoff(struct drm_crtc *crtc)
	}
	sde_crtc->play_count++;

	if (cstate->sbuf_cfg.rot_op_mode != SDE_CTL_ROT_OP_MODE_OFFLINE)
		drm_atomic_crtc_for_each_plane(plane, crtc)
	if (cstate->sbuf_cfg.rot_op_mode != SDE_CTL_ROT_OP_MODE_OFFLINE) {
		drm_atomic_crtc_for_each_plane(plane, crtc) {
			sde_plane_kickoff(plane);
		}
	}

	for (i = 0; i < sde_crtc->num_mixers; i++) {
		ctl = sde_crtc->mixers[i].hw_ctl;