NetworkPkg: Source fixes and cleanup for ARMGCC compiles
- Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Delete excess local variables that are initialized but otherwise unused. - Add LibraryClasses.ARM & AARCH64 section in NetworkPkg.dsc file, containing a CompilerIntrinsicsLib null-library, required for successful standalone package builds (copied from MdeModulePkg.dsc). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell <randy_pawell@hp.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16472 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
Dhcp6 internal functions implementation.
|
||||
|
||||
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
|
||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
@@ -544,7 +545,6 @@ Dhcp6UpdateIaInfo (
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_DHCP6_STATE State;
|
||||
UINT8 *Option;
|
||||
UINT8 *IaInnerOpt;
|
||||
UINT16 IaInnerLen;
|
||||
@@ -565,7 +565,6 @@ Dhcp6UpdateIaInfo (
|
||||
//
|
||||
// See details in the section-18.1.8 of rfc-3315.
|
||||
//
|
||||
State = Dhcp6Init;
|
||||
Option = Dhcp6SeekIaOption (
|
||||
Packet->Dhcp6.Option,
|
||||
Packet->Length - sizeof (EFI_DHCP6_HEADER),
|
||||
@@ -2428,14 +2427,12 @@ Dhcp6HandleAdvertiseMsg (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
UINT8 *Option;
|
||||
UINT16 StsCode;
|
||||
BOOLEAN Timeout;
|
||||
|
||||
ASSERT(Instance->Config);
|
||||
ASSERT(Instance->IaCb.Ia);
|
||||
|
||||
Timeout = FALSE;
|
||||
StsCode = Dhcp6StsSuccess;
|
||||
|
||||
//
|
||||
// If the client does receives a valid reply message that includes a rapid
|
||||
|
Reference in New Issue
Block a user