diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2024-03-17 23:33:04 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-03-19 17:04:40 +0000 |
commit | 4dac5207072f25f7eec5961e860ba9e5ff96b662 (patch) | |
tree | cf9c9fdee0b309fc0312abfaeb02e36f82251901 /src/arch/x86/cpu_common.c | |
parent | de37be8a1afd3ce676142bf75b975cc6e4f26dcd (diff) |
arch/x86: Directly return result of `IS_POWER_OF_2()`
Change-Id: I314d726deaed30e69121126ba6834e4c7cafd090
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81299
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Diffstat (limited to 'src/arch/x86/cpu_common.c')
-rw-r--r-- | src/arch/x86/cpu_common.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); } |