]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
virt: drop an unused assignment
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 2 Jul 2023 09:09:09 +0000 (11:09 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 2 Jul 2023 10:22:41 +0000 (12:22 +0200)
As `v` gets overwritten by the following detect_vm_cpuid() call.

Resolves: CID#1509247

src/basic/virt.c

index 79fa43e0d82483a49e120eed5196b5bc5ff4fb1b..1fef114bc8d391ac2dcf735065209a025a2da1d5 100644 (file)
@@ -492,8 +492,6 @@ Virtualization detect_vm(void) {
                         return xen_dom0;
                 if (xen_dom0 == 0)
                         goto finish;
-
-                v = VIRTUALIZATION_NONE;
         } else if (v != VIRTUALIZATION_NONE)
                 assert_not_reached();