aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2007-07-17 07:36:08 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-07-17 07:36:20 -0400
commit086a6c6249995e49db0f7196d59f69dc3a1e1ef8 (patch)
tree6c7ac2e4f79d5560e829444b365eee36f4521b90 /drivers/s390
parente90a2857c666913258528ce96decc43c749bbf95 (diff)
[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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 6b264bdb5bfb..001682e70f67 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -272,7 +272,7 @@ modalias_show (struct device *dev, struct device_attribute *attr, char *buf)
272 struct ccw_device_id *id = &(cdev->id); 272 struct ccw_device_id *id = &(cdev->id);
273 int len; 273 int len;
274 274
275 len = snprint_alias(buf, PAGE_SIZE, id, "\n") + 1; 275 len = snprint_alias(buf, PAGE_SIZE, id, "\n");
276 276
277 return len > PAGE_SIZE ? PAGE_SIZE : len; 277 return len > PAGE_SIZE ? PAGE_SIZE : len;
278} 278}