diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-06-27 00:46:22 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-06-27 17:04:55 +0000 |
commit | bc3150913beec4d35081edd05ba8d54d36d31f64 (patch) | |
tree | 4f6ad651c57c34ed1198c25df0c8b9f094933875 /src/northbridge/amd/pi/00660F01 | |
parent | 5128f1b593467bbd36ac4839f71a3f01a8cdc306 (diff) |
northbridge/amd/pi: Arithmetics is not logic
It's pretty obvious that the author did not want to use a logical
and (&&) here but an arithmetical and (&)
Change-Id: Ic1bece86986906b76308bbb46235c22418e27990
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/20388
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/northbridge/amd/pi/00660F01')
-rw-r--r-- | src/northbridge/amd/pi/00660F01/northbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/amd/pi/00660F01/northbridge.c b/src/northbridge/amd/pi/00660F01/northbridge.c index f085d5c20d..bd4884c466 100644 --- a/src/northbridge/amd/pi/00660F01/northbridge.c +++ b/src/northbridge/amd/pi/00660F01/northbridge.c @@ -869,7 +869,7 @@ static void cpu_bus_scan(device_t dev) AmdGetValue(AMD_GLOBAL_USER_OPTIONS, (VOID**)&options, sizeof(options)); AmdGetValue(AMD_GLOBAL_NUM_MODULES, &modules_ptr, sizeof(modules)); - modules = (*(u32*)modules_ptr) && ((1ull << (sizeof(modules) * 8)) - 1); + modules = (*(u32 *)modules_ptr) & ((1ull << (sizeof(modules) * 8)) - 1); ASSERT(modules > 0); ASSERT(options); ioapic_count = (int)options->CfgPlatNumIoApics; |