Skip to contentSkip to conversation

lib/slre: remove superfluous assignment

PATCH New Heinrich Schuchardt 2 participants 2 messages May 8, 2017 – May 12, 2017 Library code

lore
Share & tools
lore
#0 lore raw

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.

---
 lib/slre.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/slre.c +1 -1
index f90749f8ed..e26d344865 100644
@@ -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
#1 lore raw

PATCH 1/1 lib/slre: remove superfluous assignment

Quoted 5 lines · xypron.glpk at gmx.de

The value assigned to saved_offset is never used.

The problem was indicated by clang scan-build.

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>