diff options
author | Jiaxin Wu <Jiaxin.wu@intel.com> | 2019-01-16 10:54:42 +0800 |
---|---|---|
committer | Jiaxin Wu <Jiaxin.wu@intel.com> | 2019-01-23 08:46:49 +0800 |
commit | af82ca4560a5c2ef4286bad767cab3cfe7c115dd (patch) | |
tree | f2d12dd2b128470b7d9a3a38c7f70462976eba6b /NetworkPkg | |
parent | 710962016b095e49404625ef92df57cb065e8f31 (diff) | |
download | edk2-af82ca4560a5c2ef4286bad767cab3cfe7c115dd.tar.gz edk2-af82ca4560a5c2ef4286bad767cab3cfe7c115dd.tar.bz2 edk2-af82ca4560a5c2ef4286bad767cab3cfe7c115dd.zip |
NetworkPkg/IScsiDxe: Remove unnecessary NULL pointer check.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1469
Since the value of AttemptConfigData is retrieved from the list
Entry, it can't be the NULL pointer, so just remove the unnecessary
check.
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Wu Hao A <hao.a.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/IScsiDxe/IScsiConfig.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiConfig.c b/NetworkPkg/IScsiDxe/IScsiConfig.c index 83644f51d8..78135b411c 100644 --- a/NetworkPkg/IScsiDxe/IScsiConfig.c +++ b/NetworkPkg/IScsiDxe/IScsiConfig.c @@ -1,7 +1,7 @@ /** @file
Helper functions for configuring or getting the parameters relating to iSCSI.
-Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2019, 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
@@ -2292,10 +2292,6 @@ IScsiConfigDeleteAttempts ( //
AttemptConfigData = NET_LIST_USER_STRUCT (Entry, ISCSI_ATTEMPT_CONFIG_NVDATA, Link);
- if (AttemptConfigData == NULL) {
- Status = EFI_NOT_FOUND;
- goto Error;
- }
//
// Remove this attempt from UI configured attempt list.
|