USB_IO_DEVICE *ChildDevice;\r
UINT8 Index;\r
EFI_USB_IO_PROTOCOL *UsbIo;\r
+ EFI_STATUS Status;\r
\r
//\r
// Double check UsbIoDevice exists\r
// Uninstall EFI_USB_IO_PROTOCOL & DEVICE_PATH_PROTOCOL\r
// installed on this handle\r
//\r
- gBS->UninstallMultipleProtocolInterfaces (\r
- UsbController->Handle,\r
- &gEfiDevicePathProtocolGuid,\r
- UsbController->DevicePath,\r
- &gEfiUsbIoProtocolGuid,\r
- &UsbController->UsbIo,\r
- NULL\r
- );\r
+ Status = gBS->UninstallMultipleProtocolInterfaces (\r
+ UsbController->Handle,\r
+ &gEfiDevicePathProtocolGuid,\r
+ UsbController->DevicePath,\r
+ &gEfiUsbIoProtocolGuid,\r
+ &UsbController->UsbIo,\r
+ NULL\r
+ );\r
+ if (EFI_ERROR (Status)) {\r
+ return Status;\r
+ }\r
\r
if (UsbController->DevicePath != NULL) {\r
gBS->FreePool (UsbController->DevicePath);\r