summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index bded9f64c7..0a438a3be4 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -141,12 +141,9 @@ static char *fw_string_blank(char *s, int noblank)
for (i = 0; i < len; i++, s++) {
if ((noblank && !isblank(*s)) ||
(!noblank && isblank(*s)))
- break;
+ return s;
}
- if (i == len)
- return NULL;
-
- return s;
+ return NULL;
}
/*