summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtSerialIoDxe
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/WinNtSerialIoDxe')
-rw-r--r--Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
index 52d7ee8b06..17e4fdacf6 100644
--- a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
+++ b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
@@ -372,18 +372,9 @@ Returns:
break;
}
}
+
FreePool (OpenInfoBuffer);
-
- if (Index < EntryCount) {
- //
- // If gEfiWinNtIoProtocolGuid is opened by one child device, return
- //
- return Status;
- }
- //
- // If gEfiWinNtIoProtocolGuid is not opened by any child device,
- // go further to create child device handle based on RemainingDevicePath
- //
+ return Status;
}
if (RemainingDevicePath == NULL) {