summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-05-08 19:13:43 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-12 12:37:18 (GMT)
commitb8865e6bf0ed519e6a8b9634a776092a2812af9e (patch)
tree46ad0df443f0585ea2a4adf15461aeeade3d86e6 /lib
parentc42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc (diff)
downloadu-boot-b8865e6bf0ed519e6a8b9634a776092a2812af9e.tar.xz
lib/slre: remove superfluous assignment
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/slre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slre.c b/lib/slre.c
index f90749f..e26d344 100644
--- 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;