summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2024-03-17 23:33:04 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-03-19 17:04:40 +0000
commit4dac5207072f25f7eec5961e860ba9e5ff96b662 (patch)
treecf9c9fdee0b309fc0312abfaeb02e36f82251901
parentde37be8a1afd3ce676142bf75b975cc6e4f26dcd (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>
-rw-r--r--src/arch/x86/cpu_common.c5
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);
}