]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_nvedit.c: Fix compiler warning introduced by checkpatch cleanup
authorKumar Gala <galak@kernel.crashing.org>
Wed, 23 Nov 2011 09:48:02 +0000 (09:48 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 27 Nov 2011 14:46:10 +0000 (15:46 +0100)
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>
common/cmd_nvedit.c

index 7409a3644af1d1c0d8a48b19f69c6077f5853f4f..599535449ebf49066f0c5e5dd084e9fd760bd814 100644 (file)
@@ -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("=");