lib/slre: remove superfluous assignment
PATCH 1/1 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 <[email protected]>
--- lib/slre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/slre.c +1 -1
@@ -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;
Signature · 1 line
2.11.0
PATCH 1/1 lib/slre: remove superfluous assignment
Quoted 5 lines · xypron.glpk at gmx.de
The value assigned to
saved_offsetis never used.The problem was indicated by clang scan-build.
Signed-off-by Heinrich Schuchardt <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/e4009408/attachment.sig>