summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2017-09-03 21:09:34 +1000
committerMartin Roth <martinroth@google.com>2017-09-13 19:25:42 +0000
commitb92f6d36dfc7f6dc2a9fb0551739feb3dc3ea04c (patch)
tree9ab0bc9126d5fe4da8ac0ee716c16ccd0043b4e2
parent0025247171cff79fc955f70ed127a3de49c68d28 (diff)
downloadcoreboot-b92f6d36dfc7f6dc2a9fb0551739feb3dc3ea04c.tar.xz
agesa/f15tn: Remove unnecessary logic op
One liner that fixes a warning with clang Change-Id: I4d7dfaa5fcf0e95acd650e4c129e0899b5d68f09 Signed-off-by: Damien Zammit <damien@zamaudio.com> Reviewed-on: https://review.coreboot.org/21361 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c b/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c
index 23d7cb35e2..624c2fdc28 100644
--- a/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c
+++ b/src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c
@@ -67,7 +67,7 @@ FchSwInitGecBootRom (
LocalCfgPtr = (FCH_DATA_BLOCK *) FchDataPtr;
StdHeader = LocalCfgPtr->StdHeader;
- if ( !LocalCfgPtr->Gec.PtrDynamicGecRomAddress == 0 ) {
+ if ( LocalCfgPtr->Gec.PtrDynamicGecRomAddress ) {
GecRomAddress = LocalCfgPtr->Gec.PtrDynamicGecRomAddress;
GecShadowRomAddress = (VOID*) (UINTN) LocalCfgPtr->Gec.GecShadowRomBase;
FchCopyMem (GecShadowRomAddress, GecRomAddress, 0x100);