1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

cryptsetup: drop redundant parens/drop ternary op

A ternary op is a bit weird to use if we end up assigning a variable to
itself in one of the branches. Hence use a plain if check.
This commit is contained in:
Lennart Poettering 2022-10-17 00:14:21 +02:00
parent c39d018774
commit 714c586943

View File

@ -1988,7 +1988,8 @@ static int run(int argc, char *argv[]) {
if (until == USEC_INFINITY)
until = 0;
arg_key_size = (arg_key_size > 0 ? arg_key_size : (256 / 8));
if (arg_key_size == 0)
arg_key_size = 256U / 8U;
if (key_file) {
struct stat st;