virt: simplifications
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Apr 2018 10:24:57 +0000 (12:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Apr 2018 10:32:25 +0000 (12:32 +0200)
commitc2b19b3cbabd5a08e54343a988e07e38f5d3346d
tree33ac210cee2f70f85141679b37d72c48a6923866
parentf2fe2865cd19cd4318b82d01b9b62d22b1697b3a
virt: simplifications

Let's simplify the code a bit. Let's reduce the number of redundant if
checks a bit, (i.e. if we want to check for equality with
VIRTUALIZATION_VM_OTHER there's no need to check for non-equality with
VIRTUALIZATION_NONE first). As a very welcome side-effect this means we
lose some lines of code and our level of indentation is reduced.

No changes in behaviour.
src/basic/virt.c