Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Felipe Contreras and committed by
Linus Torvalds
9fd43054 ae2924a2

+4 -5
+4 -5
lib/cmdline.c
··· 49 49 * 3 - hyphen found to denote a range 50 50 */ 51 51 52 - int get_option (char **str, int *pint) 52 + int get_option(char **str, int *pint) 53 53 { 54 54 char *cur = *str; 55 55 56 56 if (!cur || !(*cur)) 57 57 return 0; 58 - *pint = simple_strtol (cur, str, 0); 58 + *pint = simple_strtol(cur, str, 0); 59 59 if (cur == *str) 60 60 return 0; 61 61 if (**str == ',') { ··· 84 84 * the parse to end (typically a null terminator, if @str is 85 85 * completely parseable). 86 86 */ 87 - 87 + 88 88 char *get_options(const char *str, int nints, int *ints) 89 89 { 90 90 int res, i = 1; 91 91 92 92 while (i < nints) { 93 - res = get_option ((char **)&str, ints + i); 93 + res = get_option((char **)&str, ints + i); 94 94 if (res == 0) 95 95 break; 96 96 if (res == 3) { ··· 152 152 153 153 return ret; 154 154 } 155 - 156 155 157 156 EXPORT_SYMBOL(memparse); 158 157 EXPORT_SYMBOL(get_option);