Commit 32afbf07 authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Len Brown
Browse files

ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs



Skip blanks not just at the tail of sysfs writes, but also at the head.

Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 2369cc94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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++;