Remove redundant check for key file.

Semantically same check is in tools_get_key routine.
This commit is contained in:
Ondrej Kozina
2018-04-16 15:25:46 +02:00
committed by Milan Broz
parent 53dcee6176
commit 103fa8fa2c

View File

@@ -1354,7 +1354,7 @@ static int action_luksAddKey(void)
r = tools_get_key(_("Enter new passphrase for key slot: "),
&password_new, &password_new_size,
opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file,
opt_timeout, _verify_passphrase(1), opt_new_key_file ? 0 : 1, cd);
opt_timeout, _verify_passphrase(1), 1, cd);
if (r < 0)
goto out;