Use crypt_is_cipher_null check where possible.

This commit is contained in:
Ondrej Kozina
2021-02-18 14:19:09 +01:00
parent b0da623c8a
commit 1fe2d3d92b
3 changed files with 3 additions and 3 deletions

View File

@@ -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;