mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Use crypt_is_cipher_null check where possible.
This commit is contained in:
@@ -199,7 +199,7 @@ int crypt_storage_wrapper_init(struct crypt_device *cd,
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!strcmp(_cipher, "cipher_null")) {
|
||||
if (crypt_is_cipher_null(_cipher)) {
|
||||
log_dbg(cd, "Requested cipher_null, switching to noop wrapper.");
|
||||
w->type = NONE;
|
||||
*cw = w;
|
||||
|
||||
Reference in New Issue
Block a user