From 4dac5207072f25f7eec5961e860ba9e5ff96b662 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sun, 17 Mar 2024 23:33:04 +0100 Subject: arch/x86: Directly return result of `IS_POWER_OF_2()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I314d726deaed30e69121126ba6834e4c7cafd090 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/c/coreboot/+/81299 Tested-by: build bot (Jenkins) Reviewed-by: Jérémy Compostella --- src/arch/x86/cpu_common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/cpu_common.c b/src/arch/x86/cpu_common.c index ee0721412b..5f7cd5dddf 100644 --- a/src/arch/x86/cpu_common.c +++ b/src/arch/x86/cpu_common.c @@ -245,8 +245,5 @@ bool is_cache_sets_power_of_two(void) size_t cache_sets = cpu_get_cache_sets(&info); - if (IS_POWER_OF_2(cache_sets)) - return true; - - return false; + return IS_POWER_OF_2(cache_sets); } -- cgit v1.2.3