[U-Boot] [PATCH 1/1] lib/slre: remove superfluous assignment

Heinrich Schuchardt xypron.glpk at gmx.de
Mon May 8 19:13:43 UTC 2017


The value assigned to saved_offset is never used.

The problem was indicated by clang scan-build.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/slre.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.11.0



More information about the U-Boot mailing list