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>
This commit is contained in:
@@ -245,8 +245,5 @@ bool is_cache_sets_power_of_two(void)
|
|||||||
|
|
||||||
size_t cache_sets = cpu_get_cache_sets(&info);
|
size_t cache_sets = cpu_get_cache_sets(&info);
|
||||||
|
|
||||||
if (IS_POWER_OF_2(cache_sets))
|
return IS_POWER_OF_2(cache_sets);
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user