Forráskód Böngészése

disp: msm: dsi: Remove unused for loop in ESD reg read validation

In ESD register read validation, a for loop is used to increment a
local variable with the length of ESD command. But this is unused
in the validation of the read data. This change removes the unused
for loop.

Change-Id: I6d1a9233061ee33a2b5390e2f922a2412af7d605
Signed-off-by: Ritesh Kumar <[email protected]>
Ritesh Kumar 4 éve
szülő
commit
fabb811119
1 módosított fájl, 0 hozzáadás és 3 törlés
  1. 0 3
      msm/dsi/dsi_display.c

+ 0 - 3
msm/dsi/dsi_display.c

@@ -586,9 +586,6 @@ static bool dsi_display_validate_reg_read(struct dsi_panel *panel)
 	for (i = 0; i < count; i++)
 		len += lenp[i];
 
-	for (i = 0; i < len; i++)
-		j += len;
-
 	for (j = 0; j < config->groups; ++j) {
 		for (i = 0; i < len; ++i) {
 			if (config->return_buf[i] !=