From: Karel Zak Date: Tue, 22 Mar 2016 09:31:16 +0000 (+0100) Subject: lscpu: revert unnecessary path_exist() X-Git-Tag: v2.28-rc2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4d1fbda1efdc6444f79c5e15e4ec6c74bbb5601;p=thirdparty%2Futil-linux.git 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 --- 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);