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 13:52:54 +02:00
parent c39d018774
commit 714c586943
+2 -1
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;