Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cacheinfo: Remove unused check in init_cache_level()

commit e75d18cecbb3 ("arm64: cacheinfo: Fix incorrect assignment
of signed error value to unsigned fw_level")
checks the fw_level value in init_cache_level() in case the value is
negative.
Remove this check as the error code is not returned through
fw_level anymore, and reset fw_level if acpi_get_cache_info()
failed. This allows to try fetching the cache information from
clidr_el1.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Link: https://lore.kernel.org/r/20230124154053.355376-4-pierre.gondois@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Pierre Gondois and committed by
Greg Kroah-Hartman
921e672d d931b83e

-3
-3
arch/arm64/kernel/cacheinfo.c
··· 67 67 fw_level = 0; 68 68 } 69 69 70 - if (fw_level < 0) 71 - return fw_level; 72 - 73 70 if (level < fw_level) { 74 71 /* 75 72 * some external caches not specified in CLIDR_EL1