summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-12 20:43:02 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-12 20:43:06 +0900
commitecb3e9fba368d5fa5c6241bdb7b4d97fd6827d7b (patch)
treed965c7fa2b2d230cbd58d6d550e5ff2bad1a6200 /src/boot
parent712fffd4b80fcc37ae96a18dd1d930b872d68f6b (diff)
downloadsystemd-ecb3e9fba368d5fa5c6241bdb7b4d97fd6827d7b.tar.gz
boot: at least one of os_name_pretty or os_name exists in this block
Closes CID#1438933.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/efi/boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 938e5645f9..60305f07f9 100644
--- a/src/boot/efi/boot.c
+++ b/src/boot/efi/boot.c
@@ -1988,8 +1988,8 @@ static VOID config_entry_add_linux(
path = PoolPrint(L"\\EFI\\Linux\\%s", f->FileName);
entry = config_entry_add_loader(config, device, LOADER_LINUX, f->FileName, 'l',
- os_name_pretty ? : (os_name ? : os_id), path,
- os_version ? : (os_version_id ? : os_build_id));
+ os_name_pretty ?: os_name, path,
+ os_version ?: (os_version_id ? : os_build_id));
FreePool(content);
content = NULL;