]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
MdeMdeModulePkg/Usb: Fixed two usb issues
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbBusDxe / UsbEnumer.c
index 74de7d5d5069ee0cab0000ed422cbc9ed36f9503..8340b72de25c21aa68c14bd2365b9db3477bbff7 100644 (file)
@@ -2,7 +2,7 @@
 \r
     Usb bus enumeration support.\r
 \r
-Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -814,9 +814,6 @@ UsbEnumerateNewDev (
   return EFI_SUCCESS;\r
 \r
 ON_ERROR:\r
-  if (Address != Bus->MaxDevices) {\r
-    Bus->Devices[Address] = NULL;\r
-  }\r
 \r
   if (Child != NULL) {\r
     UsbFreeDevice (Child);\r