diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 03b85359a51..9405dc787b4 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -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;