summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-17 15:21:24 +0300
committerSam Ravnborg <sam@ravnborg.org>2019-08-17 17:53:55 +0300
commitb0baf85bb27ab028e726619f9162498f193cacbe (patch)
tree00c66c914fbdf879227787576fae3d70b8c1986d /drivers/gpu/drm
parent45f16c82db7e8020fafa1a470556d3460c951a17 (diff)
downloadlinux-b0baf85bb27ab028e726619f9162498f193cacbe.tar.xz
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/panel/panel-tpo-td043mtea1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c b/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
index 3b4f30c0fdae..84370562910f 100644
--- a/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
+++ b/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
@@ -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);
}