soc/amd/picasso,stoneyridge/mca: mark num_banks as constant

Change-Id: I23aa4d36d4e6d4c7ed66800c2e7963c4ed03c393
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56236
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2021-07-12 22:21:36 +02:00
parent ceb2fbb920
commit c0a6a0efc4
2 changed files with 2 additions and 6 deletions

View File

@ -154,9 +154,7 @@ void check_mca(void)
{
int i;
struct mca_bank mci;
unsigned int num_banks;
num_banks = mca_get_bank_count();
const unsigned int num_banks = mca_get_bank_count();
for (i = 0 ; i < num_banks ; i++) {
mci.sts = rdmsr(MCAX_STATUS_MSR(i));

View File

@ -153,9 +153,7 @@ void check_mca(void)
{
int i;
struct mca_bank mci;
unsigned int num_banks;
num_banks = mca_get_bank_count();
const unsigned int num_banks = mca_get_bank_count();
if (is_warm_reset()) {
for (i = 0 ; i < num_banks ; i++) {