]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Update IScsiDxe to pass XCODE build
authorLiming Gao <liming.gao@intel.com>
Tue, 28 Nov 2017 03:19:23 +0000 (11:19 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 5 Dec 2017 15:09:35 +0000 (23:09 +0800)
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>
NetworkPkg/IScsiDxe/IScsiDhcp.c
NetworkPkg/IScsiDxe/IScsiExtScsiPassThru.c

index 6587a05993535ba6391d82ca91919db6d2aba019..309ce0daf2a6ebdce2fce05e9a3ef60660ef9469 100644 (file)
@@ -266,7 +266,7 @@ IScsiDhcpSelectOffer (
     break;\r
   }\r
 \r
-  if ((Index == OptionCount)) {\r
+  if (Index == OptionCount) {\r
     Status = EFI_NOT_READY;\r
   }\r
 \r
index f9712449b5066ccf08d611d1852b0792924583eb..90e26d4611a50e73c00df7c1869deeef66ab4510 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The implementation of EFI_EXT_SCSI_PASS_THRU_PROTOCOL.\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -219,7 +219,7 @@ IScsiExtScsiPassThruBuildDevicePath (
   EFI_DEV_PATH                  *Node;\r
   UINTN                         DevPathNodeLen;\r
 \r
-  if ((DevicePath == NULL)) {\r
+  if (DevicePath == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r