projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull rmia32 into release branch
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
params.c
diff --git
a/kernel/params.c
b/kernel/params.c
index d656c276508de6a9bbeb62407b59e477ff7ff61e..cf1b691831275f85247ebd93628b8015fac1c70d 100644
(file)
--- a/
kernel/params.c
+++ b/
kernel/params.c
@@
-24,6
+24,7
@@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>
+#include <linux/string.h>
#if 0
#define DEBUGP printk
#if 0
#define DEBUGP printk
@@
-122,9
+123,7
@@
static char *next_arg(char *args, char **param, char **val)
next = args + i;
/* Chew up trailing spaces. */
next = args + i;
/* Chew up trailing spaces. */
- while (isspace(*next))
- next++;
- return next;
+ return skip_spaces(next);
}
/* Args looks like "foo=bar,bar2 baz=fuz wiz". */
}
/* Args looks like "foo=bar,bar2 baz=fuz wiz". */
@@
-139,8
+138,7
@@
int parse_args(const char *name,
DEBUGP("Parsing ARGS: %s\n", args);
/* Chew leading spaces */
DEBUGP("Parsing ARGS: %s\n", args);
/* Chew leading spaces */
- while (isspace(*args))
- args++;
+ args = skip_spaces(args);
while (*args) {
int ret;
while (*args) {
int ret;