From b92f6d36dfc7f6dc2a9fb0551739feb3dc3ea04c Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 3 Sep 2017 21:09:34 +1000 Subject: agesa/f15tn: Remove unnecessary logic op MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One liner that fixes a warning with clang Change-Id: I4d7dfaa5fcf0e95acd650e4c129e0899b5d68f09 Signed-off-by: Damien Zammit Reviewed-on: https://review.coreboot.org/21361 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Martin Roth --- .../amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3