Thread (10 messages) 10 messages, 3 authors, 2021-07-31
STALE1807d
Revisions (2)
  1. v2 current
  2. v3 [diff vs current]

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

From: Len Baker <hidden>
Date: 2021-07-24 16:55:05
Also in: dri-devel, linux-staging, lkml
Subsystem: fbtft framebuffer drivers, staging subsystem, the rest · Maintainers: Andy Shevchenko, Greg Kroah-Hartman, Linus Torvalds

Remove the initialization of the variable "i" since it is written a few
lines later.

Signed-off-by: Len Baker <redacted>
---
 drivers/staging/fbtft/fbtft-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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 */
--
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help