cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
PATCH 1/1 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
--- common/cmd_nvedit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_nvedit.c +1 -1
@@ -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 ("=" );
Signature · 1 line
1.7.3.4
PATCH 1/1 cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111123/2a54a81c/attachment.pgp>
PATCH 1/1 cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
In reply to Kumar GalaHi Kumar,
Sorry for that one.
Quoted 4 lines · Kumar Gala
cmd_nvedit.c: In function 'do_env_grep':
cmd_nvedit.c:182:3: warning: suggest parentheses around assignment used as truth valueSigned-off-by Kumar Gala <[email protected]>
Quoted 17 lines
--- common/cmd_nvedit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)common/cmd_nvedit.c +1
-1@@ -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 ("=" );
Signature · 2 lines
Regards, Igor.
Wolfgang Denk
AppliedPATCH 1/1 cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
In reply to Kumar GalaDear Kumar Gala,
Quoted 7 lines · In message <[email protected]> you…
cmd_nvedit.c: In function 'do_env_grep':
cmd_nvedit.c:182:3: warning: suggest parentheses around assignment used as truth valueSigned-off-by Kumar Gala <[email protected]>--- common/cmd_nvedit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If some day we are defeated, well, war has its fortunes, good and bad. -- Commander Kor, "Errand of Mercy", stardate 3201.7