aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-23 09:48:02 +0000
committerWolfgang Denk <wd@denx.de>2011-11-27 15:46:10 +0100
commit068f158fdf1937de45fc0e0bb2c3c9063c2cc8f6 (patch)
tree5098fed603edc040e9dbb63ceb42ec9ace7fbbae /common
parentd90a5b1ed1bac1e3808d3a737a3ef6496061bae0 (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nvedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 7409a3644..599535449 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("=");