]> git.ipfire.org Git - thirdparty/systemd.git/commit
condition: simplify condition_test_virtualization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Oct 2016 02:53:07 +0000 (22:53 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Oct 2016 00:12:52 +0000 (20:12 -0400)
commit0809d7740c5cf988e049781b4b80e14a3bbefb70
tree7380162be2ded3f787d118cb27fe2b45e90986b0
parentd09f968657f379025c30c02cff7047b642b0866a
condition: simplify condition_test_virtualization

Rewrite the function to be slightly simpler. In particular, if a specific
match is found (like ConditionVirtualization=yes), simply return an answer
immediately, instead of relying that "yes" will not be matched by any of
the virtualization names below.

No functional change.
src/shared/condition.c