From 828555db97579ddcee36abcc40cc8e6461e5fa2d Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Fri, 18 Mar 2022 13:39:47 +0100 Subject: [PATCH] Remove unused code in helper routine. --- src/utils_reencrypt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils_reencrypt.c b/src/utils_reencrypt.c index e9281d43..ff7614fd 100644 --- a/src/utils_reencrypt.c +++ b/src/utils_reencrypt.c @@ -236,12 +236,8 @@ static enum device_status_info load_luks(struct crypt_device **r_cd, const char static bool luks2_reencrypt_eligible(struct crypt_device *cd) { - uint32_t flags; struct crypt_params_integrity ip = { 0 }; - if (crypt_persistent_flags_get(cd, CRYPT_FLAGS_REQUIREMENTS, &flags)) - return false; - /* raw integrity info is available since 2.0 */ if (crypt_get_integrity_info(cd, &ip) || ip.tag_size) { log_err(_("Reencryption of device with integrity profile is not supported."));