nb/intel/i945/raminit: Simplify if condition
Use De Morgan’s law to simplify the condition by getting rid of the negations. TEST=With `make BUILD_TIMELESS=1` getac/p470 remains unchanged. Change-Id: I041f2740d6991f9b4e6b8f77988b970c028ca512 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39534 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
6b88f90f06
commit
b4d9f229d4
|
@ -2437,8 +2437,8 @@ static void sdram_on_die_termination(struct sys_info *sysinfo)
|
|||
reg32 |= (1 << 14) | (1 << 6) | (2 << 16);
|
||||
MCHBAR32(ODTC) = reg32;
|
||||
|
||||
if (!(sysinfo->dimm[0] != SYSINFO_DIMM_NOT_POPULATED &&
|
||||
sysinfo->dimm[1] != SYSINFO_DIMM_NOT_POPULATED)) {
|
||||
if (sysinfo->dimm[0] == SYSINFO_DIMM_NOT_POPULATED ||
|
||||
sysinfo->dimm[1] == SYSINFO_DIMM_NOT_POPULATED) {
|
||||
printk(BIOS_DEBUG, "one dimm per channel config..\n");
|
||||
|
||||
reg32 = MCHBAR32(C0ODT);
|
||||
|
|
Loading…
Reference in New Issue