diff mbox series

[v2,2/3] staging/fbtft: Remove unnecessary variable initialization

Message ID 20210724151411.9531-3-len.baker@gmx.com
State Superseded
Headers show
Series Remove all strcpy() uses | expand

Commit Message

Len Baker July 24, 2021, 3:14 p.m. UTC
Remove the initialization of the variable "i" since it is written a few
lines later.

Signed-off-by: Len Baker <len.baker@gmx.com>
---
 drivers/staging/fbtft/fbtft-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.25.1
diff mbox series

Patch

diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index be20da3c4a5c..cc2bee22f7ad 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -992,7 +992,7 @@  static int fbtft_init_display_from_property(struct fbtft_par *par)
 int fbtft_init_display(struct fbtft_par *par)
 {
 	int buf[64];
-	int i = 0;
+	int i;
 	int j;

 	/* sanity check */