diff options
author | Alan Jenkins <alan-jenkins@tuffmail.co.uk> | 2008-09-08 22:02:07 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-08 22:02:07 +0200 |
commit | 2dccc8b0546d06e3d36735ad15526871642252cc (patch) | |
tree | a09aed4f0fbc85311313e6a9121f127f5c62f9eb /udev/udevadm-info.c | |
parent | 3b738db6eb3bf9221509f3dec8044c19bb48cb48 (diff) |
remove redundant "remove trailing newlines" in udevadm info
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r-- | udev/udevadm-info.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index b54b61e084..c2e6cdf84f 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -75,10 +75,6 @@ static void print_all_attributes(struct udev *udev, const char *devpath, const c len = sizeof(value) - 1; dbg(udev, "attr '%s'='%s'(%zi)\n", dent->d_name, value, len); - /* remove trailing newlines */ - while (len && value[len-1] == '\n') - value[--len] = '\0'; - /* skip nonprintable attributes */ while (len && isprint(value[len-1])) len--; |