summaryrefslogtreecommitdiffstats
path: root/drivers/parport/probe.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-09 20:33:35 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-09 20:33:35 +0000
commit116674acc97ba75a720329996877077d988443a2 (patch)
tree6a3f2ff0b612ae2ee8a3f3509370c9e6333a53b3 /drivers/parport/probe.c
parent71118c319fcae4a138f16e35b4f7e0a6d53ce2ca (diff)
Merge with Linux 2.4.2.
Diffstat (limited to 'drivers/parport/probe.c')
-rw-r--r--drivers/parport/probe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/parport/probe.c b/drivers/parport/probe.c
index eb94af448..e19771dfc 100644
--- a/drivers/parport/probe.c
+++ b/drivers/parport/probe.c
@@ -75,8 +75,9 @@ static void parse_data(struct parport *port, int device, char *str)
char *u;
*(sep++) = 0;
/* Get rid of trailing blanks */
- u = strchr (sep, ' ');
- if (u) *u = '\0';
+ u = sep + strlen (sep) - 1;
+ while (u >= p && *u == ' ')
+ *u-- = '\0';
u = p;
while (*u) {
*u = toupper(*u);