Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=086a6c6249995e49db0f7196d59f69dc3a1e1ef8 Commit: 086a6c6249995e49db0f7196d59f69dc3a1e1ef8 Parent: e90a2857c666913258528ce96decc43c749bbf95 Author: Cornelia Huck <[EMAIL PROTECTED]> AuthorDate: Tue Jul 17 13:36:08 2007 +0200 Committer: Martin Schwidefsky <[EMAIL PROTECTED]> CommitDate: Tue Jul 17 13:36:20 2007 +0200
[S390] cio: Dont print trailing \0 in modalias_show(). Signed-off-by: Cornelia Huck <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- drivers/s390/cio/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 6b264bd..001682e 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; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html