Skip to content

Commit

Permalink
[S390] cio: Dont print trailing \0 in modalias_show().
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Jul 17, 2007
1 parent e90a285 commit 086a6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 086a6c6

Please sign in to comment.