LCD driver trims whitespace (again again)
Julian Stecklina <[email protected]> Mon, 18 Jun 2007 19:56:28 +0200
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
Hello, Due to my violation of rules, here comes it again... The attached patch removes the behaviour that writes to /proc/pdc/lcd are whitespace trimmed. This patch applies to Kyle's parisc git tree. Signed-off-by: Julian Stecklina <[email protected]> (See thread "LCD driver trims whitespace" for reference.) Regards, Julian _______________________________________________ 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: