summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/IScsiDxe
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-11-28 11:19:23 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-05 23:09:35 +0800
commitcf260a47bec5db03cab77378da008338c106a9c6 (patch)
treedc193852e88db7425d65284add085f424eb9fc62 /NetworkPkg/IScsiDxe
parentbe18cb03053bd2f40e5b56d16b25251c01505409 (diff)
downloadedk2-cf260a47bec5db03cab77378da008338c106a9c6.tar.gz
edk2-cf260a47bec5db03cab77378da008338c106a9c6.tar.bz2
edk2-cf260a47bec5db03cab77378da008338c106a9c6.zip
NetworkPkg: Update IScsiDxe to pass XCODE build
Fix the warning equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liang Vincent <vincent.liang@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/IScsiDxe')
-rw-r--r--NetworkPkg/IScsiDxe/IScsiDhcp.c2
-rw-r--r--NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiDhcp.c b/NetworkPkg/IScsiDxe/IScsiDhcp.c
index 6587a05993..309ce0daf2 100644
--- a/NetworkPkg/IScsiDxe/IScsiDhcp.c
+++ b/NetworkPkg/IScsiDxe/IScsiDhcp.c
@@ -266,7 +266,7 @@ IScsiDhcpSelectOffer (
break;
}
- if ((Index == OptionCount)) {
+ if (Index == OptionCount) {
Status = EFI_NOT_READY;
}
diff --git a/NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c b/NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c
index f9712449b5..90e26d4611 100644
--- a/NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c
+++ b/NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c
@@ -1,7 +1,7 @@
/** @file
The implementation of EFI_EXT_SCSI_PASS_THRU_PROTOCOL.
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -219,7 +219,7 @@ IScsiExtScsiPassThruBuildDevicePath (
EFI_DEV_PATH *Node;
UINTN DevPathNodeLen;
- if ((DevicePath == NULL)) {
+ if (DevicePath == NULL) {
return EFI_INVALID_PARAMETER;
}