Fix X64 clang warnings.
Reviewed by: Rui Sun Approved by: Rui Sun git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11753 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -235,7 +235,7 @@ IScsiDhcpSelectOffer (
|
||||
break;
|
||||
}
|
||||
|
||||
if ((Index == OptionCount)) {
|
||||
if (Index == OptionCount) {
|
||||
Status = EFI_NOT_READY;
|
||||
}
|
||||
|
||||
@@ -361,6 +361,7 @@ IScsiDoDhcp (
|
||||
EFI_DHCP4_PACKET_OPTION *ParaList;
|
||||
EFI_DHCP4_CONFIG_DATA Dhcp4ConfigData;
|
||||
BOOLEAN MediaPresent;
|
||||
UINT8 *Data;
|
||||
|
||||
Dhcp4Handle = NULL;
|
||||
Dhcp4 = NULL;
|
||||
@@ -410,10 +411,11 @@ IScsiDoDhcp (
|
||||
//
|
||||
ParaList->OpCode = DHCP4_TAG_PARA_LIST;
|
||||
ParaList->Length = (UINT8) (ConfigData->NvData.TargetInfoFromDhcp ? 4 : 3);
|
||||
ParaList->Data[0] = DHCP4_TAG_NETMASK;
|
||||
ParaList->Data[1] = DHCP4_TAG_ROUTER;
|
||||
ParaList->Data[2] = DHCP4_TAG_DNS;
|
||||
ParaList->Data[3] = DHCP4_TAG_ROOT_PATH;
|
||||
Data = &ParaList->Data[0];
|
||||
Data[0] = DHCP4_TAG_NETMASK;
|
||||
Data[1] = DHCP4_TAG_ROUTER;
|
||||
Data[2] = DHCP4_TAG_DNS;
|
||||
Data[3] = DHCP4_TAG_ROOT_PATH;
|
||||
|
||||
ZeroMem (&Dhcp4ConfigData, sizeof (EFI_DHCP4_CONFIG_DATA));
|
||||
Dhcp4ConfigData.OptionCount = 1;
|
||||
|
@@ -183,7 +183,7 @@ IScsiExtScsiPassThruBuildDevicePath (
|
||||
EFI_DEV_PATH *Node;
|
||||
UINTN DevPathNodeLen;
|
||||
|
||||
if ((DevicePath == NULL)) {
|
||||
if (DevicePath == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user