From: Kumar Gala Date: Wed, 23 Nov 2011 09:48:02 +0000 (+0000) Subject: cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup X-Git-Tag: v2011.12-rc1~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6;p=u-boot 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 Acked-by: Mike Frysinger Acked-by: Igor Grinberg --- diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 7409a3644a..599535449e 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -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("=");