diff options
Diffstat (limited to 'src/hypervisor_vendor.c')
-rw-r--r-- | src/hypervisor_vendor.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/hypervisor_vendor.c b/src/hypervisor_vendor.c index eade6c66..0a447565 100644 --- a/src/hypervisor_vendor.c +++ b/src/hypervisor_vendor.c @@ -159,12 +159,8 @@ int main(int argc, char **argv) const char *hvm; char buf[256]; - hvm = get_hypervisor_cpuid(); - if (hvm) - printf("%s\n", hvm); - - hvm = get_hypervisor_dmi(); - if (hvm) + if ((hvm = get_hypervisor_cpuid()) != NULL || + (hvm = get_hypervisor_dmi()) != NULL) printf("%s\n", hvm); /* Grotty code to look for old Xen */ |