lib/slre: remove superfluous assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 3 Sep 2018 03:17:20 +0000 (05:17 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 5 Sep 2018 20:02:34 +0000 (16:02 -0400)
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>
lib/slre.c

index e26d344..969c46a 100644 (file)
@@ -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);