summaryrefslogtreecommitdiff
path: root/src/cryptenroll
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-12-20 22:15:52 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-12-20 22:15:52 +0100
commit84fa67f0ef091c736dc880ae8c4a8ee2b9fe7445 (patch)
treeae72a124ee244270bf97b4041bd320bb6ddcffd7 /src/cryptenroll
parent87cc47ba1d3a4016e84eb1b3f6bddf76266bf978 (diff)
downloadsystemd-84fa67f0ef091c736dc880ae8c4a8ee2b9fe7445.tar.gz
cryptenroll: drop an unused variable
Fixes following warning/error w/ clang: ../src/cryptenroll/cryptenroll-tpm2.c:64:64: error: unused variable 'a' [-Werror,-Wunused-variable] _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *a = NULL; ^ 1 error generated.
Diffstat (limited to 'src/cryptenroll')
-rw-r--r--src/cryptenroll/cryptenroll-tpm2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptenroll/cryptenroll-tpm2.c b/src/cryptenroll/cryptenroll-tpm2.c
index 211f8f9874..49c5beb82d 100644
--- a/src/cryptenroll/cryptenroll-tpm2.c
+++ b/src/cryptenroll/cryptenroll-tpm2.c
@@ -61,7 +61,7 @@ int enroll_tpm2(struct crypt_device *cd,
uint32_t pcr_mask) {
_cleanup_(erase_and_freep) void *secret = NULL, *secret2 = NULL;
- _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *a = NULL;
+ _cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
_cleanup_(erase_and_freep) char *base64_encoded = NULL;
size_t secret_size, secret2_size, blob_size, hash_size;
_cleanup_free_ void *blob = NULL, *hash = NULL;