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:
parent
c39d018774
commit
714c586943
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user