summaryrefslogtreecommitdiff
path: root/src/cryptenroll/cryptenroll-tpm2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptenroll/cryptenroll-tpm2.c')
-rw-r--r--src/cryptenroll/cryptenroll-tpm2.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cryptenroll/cryptenroll-tpm2.c b/src/cryptenroll/cryptenroll-tpm2.c
index 658db6a523..1052321fdc 100644
--- a/src/cryptenroll/cryptenroll-tpm2.c
+++ b/src/cryptenroll/cryptenroll-tpm2.c
@@ -201,12 +201,8 @@ int enroll_tpm2(struct crypt_device *cd,
* This is optional however, skip it if it's not explicitly provided. */
r = tpm2_load_pcr_signature(signature_path, &signature_json);
- if (r < 0) {
- if (signature_path || r != -ENOENT)
- return log_debug_errno(r, "Failed to read TPM PCR signature: %m");
-
- log_debug_errno(r, "Failed to read TPM2 PCR signature, proceeding without: %m");
- }
+ if (r < 0)
+ return log_debug_errno(r, "Failed to read TPM PCR signature: %m");
}
r = tpm2_seal(device,