diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-12-25 10:34:57 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-12-25 10:47:18 +0100 |
commit | 2413a0fab4fdad7eef3ce1d4b57664be5795b002 (patch) | |
tree | e7a21c95fa93122312f4243b211e668ca11a2cdf /src/shared/tpm2-util.c | |
parent | siphash24: introduce siphash24_compress_typesafe() macro (diff) | |
download | systemd-2413a0fab4fdad7eef3ce1d4b57664be5795b002.tar.xz systemd-2413a0fab4fdad7eef3ce1d4b57664be5795b002.zip |
format-table: introduce table_isempty and use it where appropriate
Diffstat (limited to 'src/shared/tpm2-util.c')
-rw-r--r-- | src/shared/tpm2-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 5e07b88a89..f2bdae2bec 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -5965,7 +5965,7 @@ int tpm2_list_devices(void) { } } - if (table_get_rows(t) <= 1) { + if (table_isempty(t)) { log_info("No suitable TPM2 devices found."); return 0; } |