]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Fix GCC code build error of iSCSI driver.
authorZhang Lubo <lubo.zhang@intel.com>
Fri, 22 Apr 2016 08:52:29 +0000 (16:52 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 22 Apr 2016 08:57:54 +0000 (16:57 +0800)
Fix GCC build error when refine the codes of iSCSI driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c

index bb48d8c23883071e2bf77488a79b82e97f78c2cf..ae202c3fe24a1eb0cceee6693811878dc5056112 100644 (file)
@@ -589,7 +589,7 @@ IScsiCreateDriverData (
 \r
   @param[in]              Private The iSCSI driver data.\r
 \r
-  @retval EFI_SUCCES      The clean operation is successful.\r
+  @retval EFI_SUCCESS     The clean operation is successful.\r
   @retval Others          Other errors as indicated.\r
 \r
 **/\r
@@ -600,6 +600,8 @@ IScsiCleanDriverData (
 {\r
   EFI_STATUS             Status;\r
 \r
+  Status = EFI_SUCCESS;\r
+  \r
   if (Private->DevicePath != NULL) {\r
     Status = gBS->UninstallProtocolInterface (\r
                     Private->ExtScsiPassThruHandle,\r