projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c42640c
)
lib/slre: remove superfluous assignment
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Mon, 8 May 2017 19:13:43 +0000
(21:13 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 12 May 2017 12:37:18 +0000
(08:37 -0400)
The value assigned to saved_offset is never used.
The problem was indicated by clang scan-build.
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
f90749f
..
e26d344
100644
(file)
--- a/
lib/slre.c
+++ b/
lib/slre.c
@@
-441,7
+441,7
@@
loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs)
{
int saved_offset, matched_offset;
-
saved_offset =
matched_offset = *ofs;
+ matched_offset = *ofs;
while (match(r, pc + 2, s, len, ofs, NULL)) {
saved_offset = *ofs;