video: fbdev: intelfb: remove redundant variables
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Nov 2017 17:09:32 +0000 (18:09 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 9 Nov 2017 17:09:32 +0000 (18:09 +0100)
commit3725369f94a364c5cbfd52d1852b51fa8eb9ebfe
tree1ff71bfae9bd4e85f73034b582bafb8bd72d2883
parent6b04e9f2564a609cfaebae1ff9556118f3ae0a2e
video: fbdev: intelfb: remove redundant variables

Variables err_max, err_target and f_best are being assigned values but
these are never read, hence they are redundant variables and can be
removed. Cleans up clang warnings:

drivers/video/fbdev/intelfb/intelfbhw.c:946:2: warning: Value stored to
'err_max' is never read
drivers/video/fbdev/intelfb/intelfbhw.c:947:2: warning: Value stored to
'err_target' is never read
drivers/video/fbdev/intelfb/intelfbhw.c:995:6: warning: Value stored to
'f_best' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Maik Broemme <mbroemme@libmpq.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/intelfb/intelfbhw.c