Remove redundant test in LUKS2 keyslot cipher incompatible test.

The null_cipher is tested twice there.
This commit is contained in:
Milan Broz
2025-08-17 00:04:30 +02:00
parent df58aa5aee
commit 098d2122e5

View File

@@ -165,7 +165,7 @@ int LUKS2_keyslot_cipher_incompatible(struct crypt_device *cd, const char *ciphe
{
char cipher[MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN];
if (!cipher_spec || crypt_is_cipher_null(cipher_spec))
if (!cipher_spec)
return 1;
/*