[coreboot-gerrit] Change in coreboot[master]: agesa/f15tn: Put parentheses around logic op

Damien Zammit (Code Review) gerrit at coreboot.org
Sun Sep 3 13:20:45 CEST 2017


Damien Zammit has uploaded this change for review. ( https://review.coreboot.org/21361


Change subject: agesa/f15tn: Put parentheses around logic op
......................................................................

agesa/f15tn: Put parentheses around logic op

One liner that fixes a warning with clang

Change-Id: I4d7dfaa5fcf0e95acd650e4c129e0899b5d68f09
Signed-off-by: Damien Zammit <damien at zamaudio.com>
---
M src/vendorcode/amd/agesa/f15tn/Proc/Fch/Gec/Family/Hudson2/Hudson2GecService.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/21361/1

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 23d7cb3..9c81c55 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 @@
   LocalCfgPtr = (FCH_DATA_BLOCK *) FchDataPtr;
   StdHeader = LocalCfgPtr->StdHeader;
 
-  if ( !LocalCfgPtr->Gec.PtrDynamicGecRomAddress == 0 ) {
+  if ( !(LocalCfgPtr->Gec.PtrDynamicGecRomAddress == 0) ) {
     GecRomAddress = LocalCfgPtr->Gec.PtrDynamicGecRomAddress;
     GecShadowRomAddress = (VOID*) (UINTN) LocalCfgPtr->Gec.GecShadowRomBase;
     FchCopyMem (GecShadowRomAddress, GecRomAddress, 0x100);

-- 
To view, visit https://review.coreboot.org/21361
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d7dfaa5fcf0e95acd650e4c129e0899b5d68f09
Gerrit-Change-Number: 21361
Gerrit-PatchSet: 1
Gerrit-Owner: Damien Zammit <damien at zamaudio.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170903/e95b3703/attachment.html>


More information about the coreboot-gerrit mailing list