]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup-generator: avoid magic value in ternary 17148/head
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 23 Sep 2020 19:25:41 +0000 (15:25 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 24 Sep 2020 15:19:40 +0000 (11:19 -0400)
commit263a79642bfc2d37debefc8a8e96eb6e9efe7fc3
treeeae99d161cc40e7252b31a951ea8f518f47c4324
parent62ca7d3b38dbbfbffa0aa0d3746b6be2916530b5
cryptsetup-generator: avoid magic value in ternary

`startswith` already returns the string with the prefix skipped, so we
can simplify this further and avoid using a magic value.

Noticed in passing.

Co-authored-by: Lennart Poettering <lennart@poettering.net>
src/cryptsetup/cryptsetup-generator.c