diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-05-08 21:13:43 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 08:37:18 -0400 |
commit | b8865e6bf0ed519e6a8b9634a776092a2812af9e (patch) | |
tree | 46ad0df443f0585ea2a4adf15461aeeade3d86e6 /lib | |
parent | c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc (diff) | |
download | u-boot-b8865e6bf0ed519e6a8b9634a776092a2812af9e.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slre.c b/lib/slre.c index f90749f8ed..e26d344865 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; |