Reviewed-by: Jiaxin Wu <jiaxin...@intel.com>

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of
> Zhang Lubo
> Sent: Friday, April 22, 2016 4:52 PM
> To: edk2-devel@lists.01.org
> Subject: [edk2] [patch] MdeModulePkg: Fix GCC code build error of iSCSI
> driver.
> 
> Fix GCC build error when refine the codes of iSCSI driver.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Zhang Lubo <lubo.zh...@intel.com>
> ---
>  MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
> b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
> index bb48d8c..ae202c3 100644
> --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
> +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
> @@ -587,21 +587,23 @@ IScsiCreateDriverData (
>  /**
>    Clean the iSCSI driver data.
> 
>    @param[in]              Private The iSCSI driver data.
> 
> -  @retval EFI_SUCCES      The clean operation is successful.
> +  @retval EFI_SUCCESS     The clean operation is successful.
>    @retval Others          Other errors as indicated.
> 
>  **/
>  EFI_STATUS
>  IScsiCleanDriverData (
>    IN ISCSI_DRIVER_DATA  *Private
>    )
>  {
>    EFI_STATUS             Status;
> 
> +  Status = EFI_SUCCESS;
> +
>    if (Private->DevicePath != NULL) {
>      Status = gBS->UninstallProtocolInterface (
>                      Private->ExtScsiPassThruHandle,
>                      &gEfiDevicePathProtocolGuid,
>                      Private->DevicePath
> --
> 1.9.5.msysgit.1
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to