From 0b4db1399462dc8febb6d5c798b68c257f9055b1 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 5 May 2016 20:21:47 -0700 Subject: vendorcode/intel/fsp1_0: Don't break GCC strict aliasing Change-Id: I6b345670db7df652b8b712b721dfe2905373e0d5 Signed-off-by: Stefan Reinauer Reviewed-on: https://review.coreboot.org/14630 Tested-by: build bot (Jenkins) Reviewed-by: Leroy P Leahy Reviewed-by: York Yang --- src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c') diff --git a/src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c b/src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c index 4986d52436..ba56543975 100644 --- a/src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c +++ b/src/vendorcode/intel/fsp1_0/rangeley/srx/fsphob.c @@ -142,11 +142,11 @@ GetNextHob ( // // Parse the HOB list until end of list or matching type is found. // - while (!END_OF_HOB_LIST (Hob)) { + while (!END_OF_HOB_LIST(Hob.Raw)) { if (Hob.Header->HobType == Type) { return Hob.Raw; } - Hob.Raw = GET_NEXT_HOB (Hob); + Hob.Raw = GET_NEXT_HOB(Hob.Raw); } return NULL; } @@ -183,7 +183,7 @@ GetNextGuidHob ( if (CompareGuid (Guid, &GuidHob.Guid->Name)) { break; } - GuidHob.Raw = GET_NEXT_HOB (GuidHob); + GuidHob.Raw = GET_NEXT_HOB(GuidHob.Raw); } return GuidHob.Raw; } -- cgit v1.2.3