]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: revert unnecessary path_exist()
authorKarel Zak <kzak@redhat.com>
Tue, 22 Mar 2016 09:31:16 +0000 (10:31 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Mar 2016 09:31:16 +0000 (10:31 +0100)
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>
sys-utils/lscpu.c

index 9af09e90c3da59b322dfaa4777c84c99068fccd8..0df8af92b492f4eceadefc174241855402c2c2bf 100644 (file)
@@ -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);