]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: replace redundant if check by assert() 20703/head
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Sep 2021 09:41:52 +0000 (11:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Sep 2021 12:16:00 +0000 (14:16 +0200)
commitf9e0bb6167766d3787d3b2c6722eb55a338ffe3c
tree1810e2708256d86586cb3a6f67d07116442036ed
parent1903defc2d1d0163d73f467f08b105ebb0619b40
dissect-image: replace redundant if check by assert()

We know that the designator can only be USR or ROOT (or negative), hence
let's test that with an assert here, instead of doing an if check.
src/shared/dissect-image.c