LCD driver trims whitespace (again)

Julian Stecklina <[email protected]> Sun, 17 Jun 2007 23:05:10 +0200
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
Hello,

The attached patch removes the behaviour that writes to /proc/pdc/lcd 
are whitespace trimmed.

Signed-off-by: Helge Deller <[email protected]>
(See thread "LCD driver trims whitespace" for reference.)

Regards,
Julian
--
Julian Stecklina
http://berzerkely.net/

"Dealing with failure is easy: Work hard to improve. Success is also
easy to handle: You've solved the wrong problem. Work hard to
improve." - Alan Perlis

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
no-space-removal.diff (text/x-patch, 366 B)
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index 98be288..e5d7ed9 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -195,12 +195,6 @@ static int led_proc_write(struct file *file, const char *buf,
 
 	cur = lbuf;
 
-	/* skip initial spaces */
-	while (*cur && isspace(*cur))
-	{
-		cur++;
-	}
-
 	switch ((long)data)
 	{
 	case LED_NOLCD: