1
0
Fork 0

drm/panel: tpo-td043mtea1: remove redundant assignment

Variable val is initialized to a value in a for-loop that is
never read and hence it is redundant. Remove it.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190817122124.29650-1-colin.king@canonical.com
alistair/sunxi64-5.4-dsi
Colin Ian King 2019-08-17 13:21:24 +01:00 committed by Sam Ravnborg
parent 45f16c82db
commit b0baf85bb2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static void td043mtea1_write_gamma(struct td043mtea1_panel *lcd)
td043mtea1_write(lcd, 0x13, val);
/* gamma bits [7:0] */
for (val = i = 0; i < 12; i++)
for (i = 0; i < 12; i++)
td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff);
}