Drop duplicate error message from reencrypt load.

This commit is contained in:
Ondrej Kozina
2019-05-13 18:22:01 +02:00
parent bee5574656
commit 1923928fdc

View File

@@ -2632,10 +2632,8 @@ static int _reencrypt_load(struct crypt_device *cd,
}
r = LUKS2_reenc_load(cd, hdr, device_size, params, &rh);
if (r < 0 || !rh) {
log_err(cd, _("Failed to load reenc context."));
if (r < 0 || !rh)
goto err;
}
r = LUKS2_verify_and_upload_keys(cd, hdr, rh->digest_old, rh->digest_new, *vks);
if (r == -ENOENT) {