mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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
This commit is contained in:
parent
45f16c82db
commit
b0baf85bb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue