]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptenroll: merge two if checks with same condition 29685/head
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Oct 2023 20:17:46 +0000 (22:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 23 Oct 2023 20:19:40 +0000 (22:19 +0200)
commit475c473d328c12f5e9fd43cee959154a0d0c78a4
treee8660cf290da90c3a34e0df1611d19683f1f1819
parent91a1632a4c9089973ad05ff92c6989032918ba4d
cryptenroll: merge two if checks with same condition

This removes a duplicate condition check by adding a common surrounding
if block.

This also change a confusing if check: "(X && Y) && Z" to simply "X && Y && Z"
src/cryptenroll/cryptenroll.c