diff options
Diffstat (limited to 'drivers/parisc/pdc_stable.c')
-rw-r--r-- | drivers/parisc/pdc_stable.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 13a64bc081b6..0bc5d474b168 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c | |||
@@ -779,12 +779,9 @@ static ssize_t pdcs_auto_write(struct kobject *kobj, | |||
779 | read_unlock(&pathentry->rw_lock); | 779 | read_unlock(&pathentry->rw_lock); |
780 | 780 | ||
781 | DPRINTK("%s: flags before: 0x%X\n", __func__, flags); | 781 | DPRINTK("%s: flags before: 0x%X\n", __func__, flags); |
782 | 782 | ||
783 | temp = in; | 783 | temp = skip_spaces(in); |
784 | 784 | ||
785 | while (*temp && isspace(*temp)) | ||
786 | temp++; | ||
787 | |||
788 | c = *temp++ - '0'; | 785 | c = *temp++ - '0'; |
789 | if ((c != 0) && (c != 1)) | 786 | if ((c != 0) && (c != 1)) |
790 | goto parse_error; | 787 | goto parse_error; |