]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiUsbLib/UsbDxeLib.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / UefiUsbLib / UsbDxeLib.c
index a535c1f58dc18df24124be2be021f012f9108527..db98c2f19ad7a5acea657b293f9ed3b5f0ebd143 100644 (file)
@@ -3,8 +3,8 @@
   The library provides the USB Standard Device Requests defined \r
   in Usb specification 9.4 section.\r
   \r
-  Copyright (c) 2004 - 2008, Intel Corporation All rights\r
-  reserved. This program and the accompanying materials are\r
+  Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials are\r
   licensed and made available under the terms and conditions of\r
   the BSD License which accompanies this distribution.  The full\r
   text of the license may be found at\r
@@ -177,6 +177,8 @@ UsbGetInterface (
   ASSERT (AlternateSetting != NULL);\r
   ASSERT (Status != NULL);\r
 \r
+  *AlternateSetting = 0;\r
+\r
   ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));\r
 \r
   DevReq.RequestType  = USB_DEV_GET_INTERFACE_REQ_TYPE;\r
@@ -190,7 +192,7 @@ UsbGetInterface (
                   EfiUsbDataIn,\r
                   PcdGet32 (PcdUsbTransferTimeoutValue),\r
                   AlternateSetting,\r
-                  2,\r
+                  1,\r
                   Status\r
                   );\r
 }\r
@@ -283,6 +285,8 @@ UsbGetConfiguration (
   ASSERT (ConfigurationValue != NULL);\r
   ASSERT (Status != NULL);\r
 \r
+  *ConfigurationValue = 0;\r
+\r
   ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));\r
 \r
   DevReq.RequestType  = USB_DEV_GET_CONFIGURATION_REQ_TYPE;\r
@@ -295,7 +299,7 @@ UsbGetConfiguration (
                   EfiUsbDataIn,\r
                   PcdGet32 (PcdUsbTransferTimeoutValue),\r
                   ConfigurationValue,\r
-                  2,\r
+                  1,\r
                   Status\r
                   );\r
 }\r