From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Mon, 3 Sep 2018 03:17:20 +0000 (+0200)
Subject: lib/slre: remove superfluous assignment
X-Git-Tag: v2025.01-rc5-pxa1908~3665
X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=f2906e5f586d4ff238f5370b77717279bf5b0639;p=u-boot.git

lib/slre: remove superfluous assignment

It makes no sense 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>
---

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);