northbridge/amd/pi: Remove superfluous logic operand
Commit 2e0cf14
corrected this for pi/00730F01/northbridge.c.
This commit fixes it for pi/00630F01/northbridge.c.
Found-by: Clang
Change-Id: I4eb93a07aacf6ffc5a159222117e7c934d85859e
Signed-off-by: Dave Frodin <dave.frodin@se-eng.com>
Reviewed-on: http://review.coreboot.org/8289
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
006364eedd
commit
180a11427d
|
@ -1020,7 +1020,7 @@ static u32 cpu_bus_scan(device_t dev, u32 max)
|
||||||
printk(BIOS_SPEW, "KaveriPI Debug: Grabbing the AMD Topology Information.\n");
|
printk(BIOS_SPEW, "KaveriPI Debug: Grabbing the AMD Topology Information.\n");
|
||||||
AmdGetValue(AMD_GLOBAL_USER_OPTIONS, (VOID**)&options, sizeof(options));
|
AmdGetValue(AMD_GLOBAL_USER_OPTIONS, (VOID**)&options, sizeof(options));
|
||||||
AmdGetValue(AMD_GLOBAL_NUM_MODULES, &modules_ptr, sizeof(modules));
|
AmdGetValue(AMD_GLOBAL_NUM_MODULES, &modules_ptr, sizeof(modules));
|
||||||
modules = (*(u32*)modules_ptr) && ((1ull << (sizeof(modules) * 8)) - 1);
|
modules = *(u32*)modules_ptr;
|
||||||
ASSERT(modules > 0);
|
ASSERT(modules > 0);
|
||||||
ASSERT(options);
|
ASSERT(options);
|
||||||
ioapic_count = (int)options->CfgPlatNumIoApics;
|
ioapic_count = (int)options->CfgPlatNumIoApics;
|
||||||
|
|
Loading…
Reference in New Issue