chiark / gitweb /
tree-wide: remove Lennart's copyright lines
[elogind.git] / src / basic / virt.c
index 3b2f1b9172d1b944b2d56175711c770867374abe..ac42947a4b16b97054b8a857a885a9c1b050648a 100644 (file)
@@ -1,9 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  This file is part of systemd.
-
-  Copyright 2011 Lennart Poettering
-***/
 
 #if defined(__i386__) || defined(__x86_64__)
 //#include <cpuid.h>
@@ -57,7 +52,7 @@ static int detect_vm_cpuid(void) {
         if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) == 0)
                 return VIRTUALIZATION_NONE;
 
-        hypervisor = !!(ecx & 0x80000000U);
+        hypervisor = ecx & 0x80000000U;
 
         if (hypervisor) {
                 union {