Browse Source

Merge "drm: msm: fix active pipe index"

qctecmdr 5 years ago
parent
commit
2942529106
1 changed files with 4 additions and 2 deletions
  1. 4 2
      msm/sde/sde_crtc.c

+ 4 - 2
msm/sde/sde_crtc.c

@@ -1340,9 +1340,11 @@ static void __sde_crtc_assign_active_cfg(struct sde_crtc *sdecrtc,
 	u8 found = 0;
 	u8 found = 0;
 	int i;
 	int i;
 
 
-	for (i = 0; i < SDE_STAGE_MAX && !found; i++) {
-		if (sdecrtc->active_cfg.stage[i][0] == SSPP_NONE)
+	for (i = 0; i < SDE_STAGE_MAX; i++) {
+		if (sdecrtc->active_cfg.stage[i][0] == SSPP_NONE) {
 			found = 1;
 			found = 1;
+			break;
+		}
 	}
 	}
 	if (!found) {
 	if (!found) {
 		SDE_ERROR("All active configs are allocated\n");
 		SDE_ERROR("All active configs are allocated\n");