From: Cornelia Huck Date: Tue, 17 Jul 2007 11:36:08 +0000 (+0200) Subject: [S390] cio: Dont print trailing \0 in modalias_show(). X-Git-Tag: v2.6.23-rc1~508^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=086a6c6249995e49db0f7196d59f69dc3a1e1ef8;p=linux-2.6-omap-h63xx.git [S390] cio: Dont print trailing \0 in modalias_show(). Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 6b264bdb5bf..001682e70f6 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) struct ccw_device_id *id = &(cdev->id); 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; }