From: Lennart Poettering Date: Mon, 15 Aug 2022 09:45:41 +0000 (+0200) Subject: tpm2-util: reduce unnecessary indentation X-Git-Tag: v252-rc1~447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=821d94c4039a57b8cf44e95df265bf1f5e8d4dd6;p=thirdparty%2Fsystemd.git tpm2-util: reduce unnecessary indentation Follow-up for: 55efb33edb592786fe36fa4d0a990fbbfbd59cc2 --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 0018c45aaa7..0eb6da3de00 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -670,12 +670,8 @@ static int tpm2_make_pcr_session( static const TPMT_SYM_DEF symmetric = { .algorithm = TPM2_ALG_AES, - .keyBits = { - .aes = 128 - }, - .mode = { - .aes = TPM2_ALG_CFB, - } + .keyBits.aes = 128, + .mode.aes = TPM2_ALG_CFB, }; _cleanup_(Esys_Freep) TPM2B_DIGEST *policy_digest = NULL; TPML_PCR_SELECTION pcr_selection; @@ -898,16 +894,8 @@ int tpm2_seal( .type = TPM2_ALG_KEYEDHASH, .nameAlg = TPM2_ALG_SHA256, .objectAttributes = TPMA_OBJECT_FIXEDTPM | TPMA_OBJECT_FIXEDPARENT, - .parameters = { - .keyedHashDetail = { - .scheme.scheme = TPM2_ALG_NULL, - }, - }, - .unique = { - .keyedHash = { - .size = 32, - }, - }, + .parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_NULL, + .unique.keyedHash.size = 32, .authPolicy = *policy_digest, }, };