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 <riteshk@codeaurora.org>
This commit is contained in:
Ritesh Kumar
2021-05-28 16:23:59 +05:30
committed by Gerrit - the friendly Code Review server
parent 8b0b1d1c51
commit fabb811119

View File

@@ -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] !=