drm/panel: tpo-td043mtea1: remove redundant assignment
authorColin Ian King <colin.king@canonical.com>
Sat, 17 Aug 2019 12:21:24 +0000 (13:21 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 17 Aug 2019 14:53:55 +0000 (16:53 +0200)
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
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c

index 3b4f30c..8437056 100644 (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);
 }