diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-12-28 03:23:13 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-12-28 03:23:13 -0500 |
| commit | 605c1a187f3ce82fbc243e2163c5ca8d1926df8e (patch) | |
| tree | c8065a8c5606a66f81dc494ce22a5baa5e0dfe7e /kernel/params.c | |
| parent | 17a2a9b57a9a7d2fd8f97df951b5e63e0bd56ef5 (diff) | |
| parent | ce9277fb08e6e721482f7011ca28dcd0449b197c (diff) | |
Merge branch 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into x86/urgent
Diffstat (limited to 'kernel/params.c')
| -rw-r--r-- | kernel/params.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/params.c b/kernel/params.c index d656c276508d..cf1b69183127 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/err.h> | 24 | #include <linux/err.h> |
| 25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
| 26 | #include <linux/ctype.h> | 26 | #include <linux/ctype.h> |
| 27 | #include <linux/string.h> | ||
| 27 | 28 | ||
| 28 | #if 0 | 29 | #if 0 |
| 29 | #define DEBUGP printk | 30 | #define DEBUGP printk |
| @@ -122,9 +123,7 @@ static char *next_arg(char *args, char **param, char **val) | |||
| 122 | next = args + i; | 123 | next = args + i; |
| 123 | 124 | ||
| 124 | /* Chew up trailing spaces. */ | 125 | /* Chew up trailing spaces. */ |
| 125 | while (isspace(*next)) | 126 | return skip_spaces(next); |
| 126 | next++; | ||
| 127 | return next; | ||
| 128 | } | 127 | } |
| 129 | 128 | ||
| 130 | /* Args looks like "foo=bar,bar2 baz=fuz wiz". */ | 129 | /* Args looks like "foo=bar,bar2 baz=fuz wiz". */ |
| @@ -139,8 +138,7 @@ int parse_args(const char *name, | |||
| 139 | DEBUGP("Parsing ARGS: %s\n", args); | 138 | DEBUGP("Parsing ARGS: %s\n", args); |
| 140 | 139 | ||
| 141 | /* Chew leading spaces */ | 140 | /* Chew leading spaces */ |
| 142 | while (isspace(*args)) | 141 | args = skip_spaces(args); |
| 143 | args++; | ||
| 144 | 142 | ||
| 145 | while (*args) { | 143 | while (*args) { |
| 146 | int ret; | 144 | int ret; |
