chiark / gitweb /
virt: simplifications
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Apr 2018 10:24:57 +0000 (12:24 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitb76a608e834706f16e2ad4c18aaf8cb598526f0a
tree8a4561a3b500fafee32dd4b6c754ccbc1b453078
parentf8a025d087bb1e69391462bda8c7e0a0522b6e7f
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