diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-25 13:40:36 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-25 13:40:36 +0900 |
commit | 33987ba0c2a91585dd4a53e9aaff1e9ffcfa38b3 (patch) | |
tree | b2da4a74bb588c7b4f421a8f9f02f381cedb92fd /src/boot/bootctl.c | |
parent | 29bfb683a8c9d03f10db58b4e61351fd9048f270 (diff) | |
download | systemd-33987ba0c2a91585dd4a53e9aaff1e9ffcfa38b3.tar.gz |
bootctl: drop dead code
Diffstat (limited to 'src/boot/bootctl.c')
-rw-r--r-- | src/boot/bootctl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 2832a39dd7..b74129a5f0 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -950,18 +950,8 @@ static int verb_status(int argc, char *argv[], void *userdata) { printf("System:\n"); printf(" Firmware: %s (%s)\n", strna(fw_type), strna(fw_info)); - - k = is_efi_secure_boot(); - if (k < 0) - r = log_warning_errno(k, "Failed to query secure boot status: %m"); - else - printf(" Secure Boot: %sd\n", enable_disable(k)); - - k = is_efi_secure_boot_setup_mode(); - if (k < 0) - r = log_warning_errno(k, "Failed to query secure boot mode: %m"); - else - printf(" Setup Mode: %s\n", k ? "setup" : "user"); + printf(" Secure Boot: %sd\n", enable_disable(is_efi_secure_boot())); + printf(" Setup Mode: %s\n", is_efi_secure_boot_setup_mode() ? "setup" : "user"); printf("\n"); printf("Current Loader:\n"); |