projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2369cc9
)
ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs
author
Henrique de Moraes Holschuh
<hmh@hmh.eng.br>
Mon, 8 Oct 2007 13:12:56 +0000
(10:12 -0300)
committer
Len Brown
<len.brown@intel.com>
Wed, 10 Oct 2007 03:53:52 +0000
(23:53 -0400)
Skip blanks not just at the tail of sysfs writes, but also at the head.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/misc/thinkpad_acpi.c
b/drivers/misc/thinkpad_acpi.c
index 81693b4c23b861a0b51947a8e58036f6c26eaf45..37891a8c030a229cb18deba84038f4c55af966d7 100644
(file)
--- a/
drivers/misc/thinkpad_acpi.c
+++ b/
drivers/misc/thinkpad_acpi.c
@@
-709,6
+709,8
@@
static int parse_strtoul(const char *buf,
{
char *endp;
+ while (*buf && isspace(*buf))
+ buf++;
*value = simple_strtoul(buf, &endp, 0);
while (*endp && isspace(*endp))
endp++;