From 2dccc8b0546d06e3d36735ad15526871642252cc Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Mon, 8 Sep 2008 22:02:07 +0200 Subject: [PATCH] remove redundant "remove trailing newlines" in udevadm info --- udev/udevadm-info.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index b54b61e0..c2e6cdf8 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--; -- 2.39.5