提交 22d27051 编写于 作者: H Harvey Harrison 提交者: Linus Torvalds

lib: trivial whitespace tidy

Remove extra lines before the EXPORT_SYMBOL()s
Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 aa46a63e
...@@ -50,7 +50,7 @@ static unsigned int simple_guess_base(const char *cp) ...@@ -50,7 +50,7 @@ static unsigned int simple_guess_base(const char *cp)
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*/ */
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base) unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
{ {
unsigned long result = 0; unsigned long result = 0;
...@@ -82,13 +82,12 @@ EXPORT_SYMBOL(simple_strtoul); ...@@ -82,13 +82,12 @@ EXPORT_SYMBOL(simple_strtoul);
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*/ */
long simple_strtol(const char *cp,char **endp,unsigned int base) long simple_strtol(const char *cp, char **endp, unsigned int base)
{ {
if(*cp=='-') if(*cp == '-')
return -simple_strtoul(cp+1,endp,base); return -simple_strtoul(cp + 1, endp, base);
return simple_strtoul(cp,endp,base); return simple_strtoul(cp, endp, base);
} }
EXPORT_SYMBOL(simple_strtol); EXPORT_SYMBOL(simple_strtol);
/** /**
...@@ -97,7 +96,7 @@ EXPORT_SYMBOL(simple_strtol); ...@@ -97,7 +96,7 @@ EXPORT_SYMBOL(simple_strtol);
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*/ */
unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base) unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
{ {
unsigned long long result = 0; unsigned long long result = 0;
...@@ -129,11 +128,11 @@ EXPORT_SYMBOL(simple_strtoull); ...@@ -129,11 +128,11 @@ EXPORT_SYMBOL(simple_strtoull);
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*/ */
long long simple_strtoll(const char *cp,char **endp,unsigned int base) long long simple_strtoll(const char *cp, char **endp, unsigned int base)
{ {
if(*cp=='-') if(*cp=='-')
return -simple_strtoull(cp+1,endp,base); return -simple_strtoull(cp + 1, endp, base);
return simple_strtoull(cp,endp,base); return simple_strtoull(cp, endp, base);
} }
...@@ -798,7 +797,6 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) ...@@ -798,7 +797,6 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
/* the trailing null byte doesn't count towards the total */ /* the trailing null byte doesn't count towards the total */
return str-buf; return str-buf;
} }
EXPORT_SYMBOL(vsnprintf); EXPORT_SYMBOL(vsnprintf);
/** /**
...@@ -824,7 +822,6 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) ...@@ -824,7 +822,6 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
i=vsnprintf(buf,size,fmt,args); i=vsnprintf(buf,size,fmt,args);
return (i >= size) ? (size - 1) : i; return (i >= size) ? (size - 1) : i;
} }
EXPORT_SYMBOL(vscnprintf); EXPORT_SYMBOL(vscnprintf);
/** /**
...@@ -851,7 +848,6 @@ int snprintf(char * buf, size_t size, const char *fmt, ...) ...@@ -851,7 +848,6 @@ int snprintf(char * buf, size_t size, const char *fmt, ...)
va_end(args); va_end(args);
return i; return i;
} }
EXPORT_SYMBOL(snprintf); EXPORT_SYMBOL(snprintf);
/** /**
...@@ -896,7 +892,6 @@ int vsprintf(char *buf, const char *fmt, va_list args) ...@@ -896,7 +892,6 @@ int vsprintf(char *buf, const char *fmt, va_list args)
{ {
return vsnprintf(buf, INT_MAX, fmt, args); return vsnprintf(buf, INT_MAX, fmt, args);
} }
EXPORT_SYMBOL(vsprintf); EXPORT_SYMBOL(vsprintf);
/** /**
...@@ -921,7 +916,6 @@ int sprintf(char * buf, const char *fmt, ...) ...@@ -921,7 +916,6 @@ int sprintf(char * buf, const char *fmt, ...)
va_end(args); va_end(args);
return i; return i;
} }
EXPORT_SYMBOL(sprintf); EXPORT_SYMBOL(sprintf);
/** /**
...@@ -1150,7 +1144,6 @@ int vsscanf(const char * buf, const char * fmt, va_list args) ...@@ -1150,7 +1144,6 @@ int vsscanf(const char * buf, const char * fmt, va_list args)
return num; return num;
} }
EXPORT_SYMBOL(vsscanf); EXPORT_SYMBOL(vsscanf);
/** /**
...@@ -1169,5 +1162,4 @@ int sscanf(const char * buf, const char * fmt, ...) ...@@ -1169,5 +1162,4 @@ int sscanf(const char * buf, const char * fmt, ...)
va_end(args); va_end(args);
return i; return i;
} }
EXPORT_SYMBOL(sscanf); EXPORT_SYMBOL(sscanf);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册