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)
commitfbccecb3f0c92880df33bdf6f17d482f97b4de08
tree25ec8cd55c0e910739b7d97e58410a507c8a061f
parent7018b087cf436a908db4eb100be76794840bc315
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