aboutsummaryrefslogtreecommitdiff
path: root/lib/slre.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-03 05:17:20 +0200
committerTom Rini <trini@konsulko.com>2018-09-05 16:02:34 -0400
commitf2906e5f586d4ff238f5370b77717279bf5b0639 (patch)
tree74398b068d9c6e5596087a0592426f3f94127985 /lib/slre.c
parenta92e52137d3cdad60d5984936330ad0fca1b4a2b (diff)
downloadu-boot-f2906e5f586d4ff238f5370b77717279bf5b0639.zip
u-boot-f2906e5f586d4ff238f5370b77717279bf5b0639.tar.gz
u-boot-f2906e5f586d4ff238f5370b77717279bf5b0639.tar.bz2
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>
Diffstat (limited to 'lib/slre.c')
-rw-r--r--lib/slre.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/slre.c b/lib/slre.c
index e26d344..969c46a 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);