X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fparisc%2Fpdc_stable.c;h=0bc5d474b1688aa74b4dd96d9b2f016154ce065e;hb=605c1a187f3ce82fbc243e2163c5ca8d1926df8e;hp=13a64bc081b6762d873204c3ddd0cbe7c35d074c;hpb=ef4b18e2af09b69b5a183ad611f5965ef1766be4;p=cascardo%2Flinux.git 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, read_unlock(&pathentry->rw_lock); DPRINTK("%s: flags before: 0x%X\n", __func__, flags); - - temp = in; - - while (*temp && isspace(*temp)) - temp++; - + + temp = skip_spaces(in); + c = *temp++ - '0'; if ((c != 0) && (c != 1)) goto parse_error;