tree-wide: shorten a couple of ternary expressions

This commit is contained in:
Frantisek Sumsal 2023-12-25 11:52:39 +01:00
parent 0a6a59650e
commit f51aec74c9
2 changed files with 2 additions and 2 deletions

View file

@ -879,7 +879,7 @@ static int request_handler_machine(
SD_ID128_FORMAT_VAL(bid),
hostname_cleanup(hostname),
os_release_pretty_name(pretty_name, os_name),
v ? v : "bare",
v ?: "bare",
usage,
cutoff_from,
cutoff_to);

View file

@ -2059,7 +2059,7 @@ int tpm2_create_primary(
session ? session->esys_handle : ESYS_TR_PASSWORD,
ESYS_TR_NONE,
ESYS_TR_NONE,
sensitive ? sensitive : &(TPM2B_SENSITIVE_CREATE) {},
sensitive ?: &(TPM2B_SENSITIVE_CREATE) {},
template,
/* outsideInfo= */ NULL,
&(TPML_PCR_SELECTION) {},