From: Heinrich Schuchardt Date: Mon, 3 Sep 2018 03:17:20 +0000 (+0200) Subject: lib/slre: remove superfluous assignment X-Git-Url: http://git.dujemihanovic.xyz/?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 --- 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);