nb/intel/nehalem/raminit.c: Remove variable set but not used
Change-Id: I5d3a04970fa57f07ca7dd748f114ac0cd6955522 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33004 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6beaef983a
commit
019a253b34
|
@ -2235,26 +2235,11 @@ train_ram_at_178(struct raminfo *info, u8 channel, int slot, int rank,
|
||||||
u8 lower_usable[8];
|
u8 lower_usable[8];
|
||||||
u8 upper_usable[8];
|
u8 upper_usable[8];
|
||||||
unsigned short num_successfully_checked[8];
|
unsigned short num_successfully_checked[8];
|
||||||
u8 secondary_total_rank;
|
|
||||||
u8 reg1b3;
|
u8 reg1b3;
|
||||||
|
|
||||||
if (info->populated_ranks_mask[1]) {
|
|
||||||
if (channel == 1)
|
|
||||||
secondary_total_rank =
|
|
||||||
info->populated_ranks[1][0][0] +
|
|
||||||
info->populated_ranks[1][0][1]
|
|
||||||
+ info->populated_ranks[1][1][0] +
|
|
||||||
info->populated_ranks[1][1][1];
|
|
||||||
else
|
|
||||||
secondary_total_rank = 0;
|
|
||||||
} else
|
|
||||||
secondary_total_rank = total_rank;
|
|
||||||
|
|
||||||
{
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 8; i++)
|
for (i = 0; i < 8; i++)
|
||||||
state[i] = BEFORE_USABLE;
|
state[i] = BEFORE_USABLE;
|
||||||
}
|
|
||||||
|
|
||||||
if (!first_run) {
|
if (!first_run) {
|
||||||
int is_all_ok = 1;
|
int is_all_ok = 1;
|
||||||
|
@ -2270,7 +2255,6 @@ train_ram_at_178(struct raminfo *info, u8 channel, int slot, int rank,
|
||||||
is_all_ok = 0;
|
is_all_ok = 0;
|
||||||
}
|
}
|
||||||
if (is_all_ok) {
|
if (is_all_ok) {
|
||||||
int i;
|
|
||||||
for (i = 0; i < 8; i++)
|
for (i = 0; i < 8; i++)
|
||||||
state[i] = COMPLETE;
|
state[i] = COMPLETE;
|
||||||
}
|
}
|
||||||
|
@ -2336,7 +2320,6 @@ train_ram_at_178(struct raminfo *info, u8 channel, int slot, int rank,
|
||||||
|
|
||||||
do {
|
do {
|
||||||
u8 failmask = 0;
|
u8 failmask = 0;
|
||||||
int i;
|
|
||||||
for (i = 0; i < niter; i++) {
|
for (i = 0; i < niter; i++) {
|
||||||
if (failmask == 0xFF)
|
if (failmask == 0xFF)
|
||||||
break;
|
break;
|
||||||
|
@ -2437,7 +2420,6 @@ train_ram_at_178(struct raminfo *info, u8 channel, int slot, int rank,
|
||||||
|
|
||||||
do {
|
do {
|
||||||
int failmask = 0;
|
int failmask = 0;
|
||||||
int i;
|
|
||||||
for (i = 0; i < niter; i++) {
|
for (i = 0; i < niter; i++) {
|
||||||
if (failmask == 0xFF)
|
if (failmask == 0xFF)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue