From b4d1fbda1efdc6444f79c5e15e4ec6c74bbb5601 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 22 Mar 2016 10:31:16 +0100 Subject: [PATCH] lscpu: revert unnecessary path_exist() The features file is there from 2.6.31 when Xen has been added to kernel. Sorry. Signed-off-by: Karel Zak --- sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 9af09e90c3..0df8af92b4 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -824,7 +824,7 @@ read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod) if (desc->hyper) { desc->virtype = VIRT_FULL; - if (desc->hyper == HYPER_XEN && path_exist(_PATH_SYS_HYP_FEATURES)) { + if (desc->hyper == HYPER_XEN) { uint32_t features; fd = path_fopen("r", 0, _PATH_SYS_HYP_FEATURES); -- 2.47.3