]> err.no Git - systemd/commitdiff
remove redundant "remove trailing newlines" in udevadm info
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Mon, 8 Sep 2008 20:02:07 +0000 (22:02 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 8 Sep 2008 20:02:07 +0000 (22:02 +0200)
udev/udevadm-info.c

index b54b61e084eff27c962474805adf8922879f4ac3..c2e6cdf84f972ed96efcf3bd4f3d26c8aac8d523 100644 (file)
@@ -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--;