mirror of
https://github.com/systemd/systemd
synced 2024-07-22 02:34:54 +00:00
tree-wide: shorten a couple of ternary expressions
This commit is contained in:
parent
0a6a59650e
commit
f51aec74c9
|
@ -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);
|
||||
|
|
|
@ -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) {},
|
||||
|
|
Loading…
Reference in a new issue