diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-11-23 09:48:02 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-27 15:46:10 +0100 |
commit | 068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6 (patch) | |
tree | 5098fed603edc040e9dbb63ceb42ec9ace7fbbae | |
parent | d90a5b1ed1bac1e3808d3a737a3ef6496061bae0 (diff) | |
download | u-boot-imx-068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6.zip u-boot-imx-068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6.tar.gz u-boot-imx-068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6.tar.bz2 |
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>
-rw-r--r-- | common/cmd_nvedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 7409a36..5995354 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("="); |