From: xypron.glpk@gmx.de Date: Mon, 8 May 2017 19:13:43 +0000 (+0200) Subject: lib/slre: remove superfluous assignment X-Git-Tag: v2025.01-rc5-pxa1908~6936 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=b8865e6bf0ed519e6a8b9634a776092a2812af9e;p=u-boot.git 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 --- 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;