From 7d96565190c7afbca6eb1ed69b1191597b6e0644 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 22 Jul 2017 17:46:07 -0600 Subject: vendorcode/amd/agesa: f15tn & f16kb: fix assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes warning by GCC 7.1: note: did you mean to use logical not? Change-Id: If8167c6fe88135ae89eb795eeda09e6937b1684f Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/20698 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Kyösti Mälkki --- src/vendorcode/amd/agesa/f15tn/Proc/IDS/Library/IdsLib.c | 2 +- src/vendorcode/amd/agesa/f16kb/Proc/IDS/Library/IdsLib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vendorcode/amd') diff --git a/src/vendorcode/amd/agesa/f15tn/Proc/IDS/Library/IdsLib.c b/src/vendorcode/amd/agesa/f15tn/Proc/IDS/Library/IdsLib.c index b6867c5996..34a12a78e6 100644 --- a/src/vendorcode/amd/agesa/f15tn/Proc/IDS/Library/IdsLib.c +++ b/src/vendorcode/amd/agesa/f15tn/Proc/IDS/Library/IdsLib.c @@ -698,7 +698,7 @@ IdsRunCodeOnCoreEarly ( IDS_EARLY_AP_TASK IdsEarlyTask; IdentifyCore (StdHeader, &BscSocket, &IgnoredModule, &BscCoreNum, &IgnoredSts); - ASSERT (~((Socket == BscSocket) && (Core == BscCoreNum))); + ASSERT (!((Socket == BscSocket) && (Core == BscCoreNum))); if ((Socket == BscSocket) || (Core == 0)) { ApUtilRunCodeOnSocketCore (Socket, Core, ApTask, StdHeader); } else { diff --git a/src/vendorcode/amd/agesa/f16kb/Proc/IDS/Library/IdsLib.c b/src/vendorcode/amd/agesa/f16kb/Proc/IDS/Library/IdsLib.c index 2345e1c2aa..0cb0a63680 100644 --- a/src/vendorcode/amd/agesa/f16kb/Proc/IDS/Library/IdsLib.c +++ b/src/vendorcode/amd/agesa/f16kb/Proc/IDS/Library/IdsLib.c @@ -781,7 +781,7 @@ IdsRunCodeOnCoreEarly ( IDS_EARLY_AP_TASK IdsEarlyTask; IdentifyCore (StdHeader, &BscSocket, &IgnoredModule, &BscCoreNum, &IgnoredSts); - ASSERT (~((Socket == BscSocket) && (Core == BscCoreNum))); + ASSERT (!((Socket == BscSocket) && (Core == BscCoreNum))); if ((Socket == BscSocket) || (Core == 0)) { ApUtilRunCodeOnSocketCore (Socket, Core, ApTask, StdHeader); } else { -- cgit v1.2.3