]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: fbtft: remove redundant initialization of txbuf16
authorColin Ian King <colin.king@canonical.com>
Sat, 16 Sep 2017 16:46:28 +0000 (17:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:23:40 +0000 (12:23 +0200)
commit0d586255ca647ba8f5d7f0210d1516f942e5b43b
tree70d620ae99b301164a75ba4a5126f2d6c594982d
parentc5bf8914024ed00b8121ac64a61d49d3cc13d64c
staging: fbtft: remove redundant initialization of txbuf16

txbuf16 is being initialized at declaration time and then later
set to another value without it being read inbetween, hence making
the initialization redundant.  Fix this by setting txbuf16 just
the once. Also clean up some incorrect indentations. Cleans up
clang build warning:

warning: Value stored to 'txbuf16' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_ra8875.c