summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft-core.c
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-08-01 10:51:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-05 13:05:57 +0200
commit31f0c349dd399ae03df5633abd73830b2429e7a1 (patch)
tree408024f455dd5ee75964f4a1d2cd4997815e6e89 /drivers/staging/fbtft/fbtft-core.c
parentb888897014a9986726b7f8d69356097722834c04 (diff)
downloadlinux-stable-31f0c349dd399ae03df5633abd73830b2429e7a1.tar.gz
linux-stable-31f0c349dd399ae03df5633abd73830b2429e7a1.tar.bz2
linux-stable-31f0c349dd399ae03df5633abd73830b2429e7a1.zip
staging/fbtft: Remove unnecessary variable initialization
Remove the initialization of the variable "i" since it is written a few lines later. Signed-off-by: Len Baker <len.baker@gmx.com> Link: https://lore.kernel.org/r/20210801085155.3170-3-len.baker@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft-core.c')
-rw-r--r--drivers/staging/fbtft/fbtft-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index e6286043bff7..ed896049118c 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -992,7 +992,7 @@ out_free:
int fbtft_init_display(struct fbtft_par *par)
{
int buf[64];
- int i = 0;
+ int i;
int j;
/* sanity check */