]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c
authorAnton Moryakov <ant.v.moryakov@gmail.com>
Wed, 5 Feb 2025 23:42:23 +0000 (02:42 +0300)
committerAnton Moryakov <ant.v.moryakov@gmail.com>
Wed, 5 Feb 2025 23:42:23 +0000 (02:42 +0300)
sys-utils/lscpu-virt.c

index f559d9c14bacab10fc7bf2157c04f0a4bcb3ef6c..ea4b36d7a72af8865f3176f245da10938fd0364f 100644 (file)
@@ -258,8 +258,7 @@ static int read_hypervisor_dmi(void)
 
        if (sizeof(uint8_t) != 1
            || sizeof(uint16_t) != 2
-           || sizeof(uint32_t) != 4
-           || '\0' != 0)
+           || sizeof(uint32_t) != 4)
                return VIRT_VENDOR_NONE;
 
        /* -1 : no DMI in /sys,