[S390] cio: Dont print trailing \0 in modalias_show().
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
e90a2857c6
commit
086a6c6249
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ modalias_show (struct device *dev, struct device_attribute *attr, char *buf)
|
||||||
struct ccw_device_id *id = &(cdev->id);
|
struct ccw_device_id *id = &(cdev->id);
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
len = snprint_alias(buf, PAGE_SIZE, id, "\n") + 1;
|
len = snprint_alias(buf, PAGE_SIZE, id, "\n");
|
||||||
|
|
||||||
return len > PAGE_SIZE ? PAGE_SIZE : len;
|
return len > PAGE_SIZE ? PAGE_SIZE : len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue