diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-18 13:58:27 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-18 14:23:11 +0100 |
commit | 1da3cb81411e7c3d698fe20f95cc1c8145f2941c (patch) | |
tree | 520f0df7135e25623ec9c28830333aaa062c3442 /src/fundamental | |
parent | 64254629f7e062a39156ee95428d46f2a1e82e06 (diff) | |
download | systemd-1da3cb81411e7c3d698fe20f95cc1c8145f2941c.tar.gz |
tree-wide: simplify x ? x : y to x ?: y where applicable
Diffstat (limited to 'src/fundamental')
-rw-r--r-- | src/fundamental/bootspec-fundamental.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fundamental/bootspec-fundamental.c b/src/fundamental/bootspec-fundamental.c index 4ba7c4c28d..b2841e3342 100644 --- a/src/fundamental/bootspec-fundamental.c +++ b/src/fundamental/bootspec-fundamental.c @@ -43,7 +43,7 @@ bool bootspec_pick_name_version_sort_key( * defined) or entry "id" string (i.e. entry file name) otherwise. */ good_name = os_pretty_name ?: (os_image_id ?: (os_name ?: os_id)); - good_version = os_image_version ?: (os_version ?: (os_version_id ? : os_build_id)); + good_version = os_image_version ?: (os_version ?: (os_version_id ?: os_build_id)); good_sort_key = os_image_id ?: os_id; if (!good_name) |