Commit 9fd43054 authored by Felipe Contreras's avatar Felipe Contreras Committed by Linus Torvalds

lib/cmdline.c: fix style issues

WARNING: space prohibited between function name and open parenthesis '('
+int get_option (char **str, int *pint)

WARNING: space prohibited between function name and open parenthesis '('
+	*pint = simple_strtol (cur, str, 0);

ERROR: trailing whitespace
+ $

WARNING: please, no spaces at the start of a line
+ $

WARNING: space prohibited between function name and open parenthesis '('
+		res = get_option ((char **)&str, ints + i);
Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ae2924a2
...@@ -49,13 +49,13 @@ static int get_range(char **str, int *pint) ...@@ -49,13 +49,13 @@ static int get_range(char **str, int *pint)
* 3 - hyphen found to denote a range * 3 - hyphen found to denote a range
*/ */
int get_option (char **str, int *pint) int get_option(char **str, int *pint)
{ {
char *cur = *str; char *cur = *str;
if (!cur || !(*cur)) if (!cur || !(*cur))
return 0; return 0;
*pint = simple_strtol (cur, str, 0); *pint = simple_strtol(cur, str, 0);
if (cur == *str) if (cur == *str)
return 0; return 0;
if (**str == ',') { if (**str == ',') {
...@@ -84,13 +84,13 @@ int get_option (char **str, int *pint) ...@@ -84,13 +84,13 @@ int get_option (char **str, int *pint)
* the parse to end (typically a null terminator, if @str is * the parse to end (typically a null terminator, if @str is
* completely parseable). * completely parseable).
*/ */
char *get_options(const char *str, int nints, int *ints) char *get_options(const char *str, int nints, int *ints)
{ {
int res, i = 1; int res, i = 1;
while (i < nints) { while (i < nints) {
res = get_option ((char **)&str, ints + i); res = get_option((char **)&str, ints + i);
if (res == 0) if (res == 0)
break; break;
if (res == 3) { if (res == 3) {
...@@ -153,7 +153,6 @@ unsigned long long memparse(const char *ptr, char **retptr) ...@@ -153,7 +153,6 @@ unsigned long long memparse(const char *ptr, char **retptr)
return ret; return ret;
} }
EXPORT_SYMBOL(memparse); EXPORT_SYMBOL(memparse);
EXPORT_SYMBOL(get_option); EXPORT_SYMBOL(get_option);
EXPORT_SYMBOL(get_options); EXPORT_SYMBOL(get_options);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment