diff mbox series

[U-Boot,1/1] lib/slre: remove superfluous assignment

Message ID 20180318221210.6794-1-xypron.glpk@gmx.de
State Superseded
Headers show
Series [U-Boot,1/1] lib/slre: remove superfluous assignment | expand

Commit Message

Heinrich Schuchardt March 18, 2018, 10:12 p.m. UTC
It makes to assign a value to 'res' if the next use of the variable is an
assignment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 lib/slre.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Tom Rini March 18, 2018, 10:23 p.m. UTC | #1
On Sun, Mar 18, 2018 at 11:12:10PM +0100, Heinrich Schuchardt wrote:

> It makes to assign a value to 'res' if the next use of the variable is an
> assignment.

I think you meant "It makes no sense to " ...

Thanks (and for all of the other load of fixes you've been posting)!
diff mbox series

Patch

diff --git a/lib/slre.c b/lib/slre.c
index e26d344865..969c46a859 100644
--- a/lib/slre.c
+++ b/lib/slre.c
@@ -703,8 +703,6 @@  int main(int argc, char *argv[])
 
 		(void) memset(caps, 0, sizeof(caps));
 
-		res = 0;
-
 		res = slre_match(&slre, data, len, caps);
 		printf("Result [%d]: %d\n", i, res);