summaryrefslogtreecommitdiffstats
path: root/libmount/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/utils.c')
-rw-r--r--libmount/src/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index af6eb0b33..8e6b147b8 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -947,9 +947,7 @@ char *mnt_get_kernel_cmdline_option(const char *name)
if (len && *(name + len - 1) == '=')
val = 1;
- while (p && *p) {
- if (p != buf)
- p++;
+ for ( ; p && *p; p++) {
if (!(p = strstr(p, name)))
break; /* not found the option */
if (p != buf && !isblank(*(p - 1)))