From 1da3cb81411e7c3d698fe20f95cc1c8145f2941c Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sat, 18 Mar 2023 13:58:27 +0100 Subject: tree-wide: simplify x ? x : y to x ?: y where applicable --- src/fundamental/bootspec-fundamental.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fundamental') 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) -- cgit v1.2.1