summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2016-03-22 10:31:16 +0100
committerKarel Zak <kzak@redhat.com>2016-03-22 10:31:16 +0100
commitb4d1fbda1efdc6444f79c5e15e4ec6c74bbb5601 (patch)
treefbeeec615e7224ce76f4a9fb7908d8bf183872d1
parent3421709a583ca6de583fad1f8e3418020f96870a (diff)
downloadutil-linux-b4d1fbda1efdc6444f79c5e15e4ec6c74bbb5601.tar.gz
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 <kzak@redhat.com>
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 9af09e90c..0df8af92b 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);