projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92e521
)
lib/slre: remove superfluous assignment
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Mon, 3 Sep 2018 03:17:20 +0000
(
05:17
+0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/lib/slre.c
b/lib/slre.c
index e26d344865b83f7639fb711fd4b6a2c21618f4e8..969c46a8591d3a408e7744f0f8bdfe8092efd425 100644
(file)
--- 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);