mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
cmd_nvedit.c: In function 'do_env_grep': cmd_nvedit.c:182:3: warning: suggest parentheses around assignment used as truth value Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
This commit is contained in:
parent
d90a5b1ed1
commit
068f158fdf
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ static int do_env_grep(cmd_tbl_t *cmdtp, int flag,
|
|||
|
||||
while (arg <= argc) {
|
||||
idx = 0;
|
||||
while (idx = hstrstr_r(argv[arg], idx, &match, &env_htab)) {
|
||||
while ((idx = hstrstr_r(argv[arg], idx, &match, &env_htab))) {
|
||||
if (!(matched[idx / 8] & (1 << (idx & 7)))) {
|
||||
puts(match->key);
|
||||
puts("=");
|
||||
|
|
Loading…
Add table
Reference in a new issue