]> granicus.if.org Git - strace/commit
kvm: avoid bogus vcpu_info assignment in vcpu_register
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 18 Dec 2018 04:37:30 +0000 (05:37 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Jul 2019 15:23:36 +0000 (15:23 +0000)
commit9446038e9face3313373ca5f7539476789fd4660
treec8293138a49974b23f198191bf9c1159f9625d88
parent8f77473b31f8da9b66cffc220265e84ebae0deee
kvm: avoid bogus vcpu_info assignment in vcpu_register

Also reformat code a bit to make nesting a bit clearer.

Reported by Clang.

* kvm.c (vcpu_register): Do not assign vcpu_alloc result to vcpu_info
as this value is not used afterwards in the function.
kvm.c