summaryrefslogtreecommitdiff
path: root/UnixPkg/UnixSerialIoDxe
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/UnixSerialIoDxe')
-rw-r--r--UnixPkg/UnixSerialIoDxe/UnixSerialIo.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/UnixPkg/UnixSerialIoDxe/UnixSerialIo.c b/UnixPkg/UnixSerialIoDxe/UnixSerialIo.c
index ff9bced4e9..e41e74964f 100644
--- a/UnixPkg/UnixSerialIoDxe/UnixSerialIo.c
+++ b/UnixPkg/UnixSerialIoDxe/UnixSerialIo.c
@@ -466,16 +466,7 @@ Returns:
}
FreePool (OpenInfoBuffer);
- if (Index < EntryCount) {
- //
- // If gEfiUnixIoProtocolGuid is opened by one child device, return
- //
- return Status;
- }
- //
- // If gEfiUnixIoProtocolGuid is not opened by any child device,
- // go further to create child device handle based on RemainingDevicePath
- //
+ return Status;
}
if (RemainingDevicePath == NULL) {