[PATCH 2/3] dmesg: Delete redundant pager setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The setup of the pager is already performed a few lines of code above,
so it's safe to delete the repeated setup, which actually does nothing.

Signed-off-by: Dragan Simic <dsimic@xxxxxxxxxxx>
---
 sys-utils/dmesg.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 02358e449..971712b56 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1646,8 +1646,6 @@ int main(int argc, char *argv[])
 		/* only kmsg supports multi-line messages */
 		if (ctl.force_prefix && ctl.method != DMESG_METHOD_KMSG)
 			ctl.force_prefix = 0;
-		if (ctl.pager)
-			pager_redirect();
 		n = read_buffer(&ctl, &buf);
 		if (n > 0)
 			print_buffer(&ctl, buf, n);
-- 
2.33.1




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux