mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 22:56:49 +08:00
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>
This commit is contained in:
parent
c42640c748
commit
b8865e6bf0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user