From f2906e5f586d4ff238f5370b77717279bf5b0639 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 3 Sep 2018 05:17:20 +0200 Subject: [PATCH] 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 --- lib/slre.c | 2 -- 1 file changed, 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);