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

Commit 42ccb141 authored by Ritesh Kumar's avatar Ritesh Kumar Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarRitesh Kumar <riteshk@codeaurora.org>
parent e8b704e0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -595,9 +595,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] !=