From 6d0bab0e41ded0d70fc72f583e4e69e100bb3cf4 Mon Sep 17 00:00:00 2001 From: Zhang Lubo Date: Fri, 22 Apr 2016 16:54:50 +0800 Subject: NetworkPkg: 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 Reviewed-by: Jiaxin Wu --- NetworkPkg/IScsiDxe/IScsiMisc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'NetworkPkg/IScsiDxe') diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index 24067179c9..a1f2672f37 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.c +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c @@ -859,7 +859,7 @@ IScsiCreateDriverData ( @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. **/ @@ -870,6 +870,8 @@ IScsiCleanDriverData ( { EFI_STATUS Status; + Status = EFI_SUCCESS; + if (Private->DevicePath != NULL) { Status = gBS->UninstallProtocolInterface ( Private->ExtScsiPassThruHandle, -- cgit v1.2.3