Clean up for GCC and Intel ICC build.
authorqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 26 Jun 2008 03:38:11 +0000 (03:38 +0000)
committerqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 26 Jun 2008 03:38:11 +0000 (03:38 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5373 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c

index f5ec52d..b7c66fe 100644 (file)
@@ -720,7 +720,7 @@ UsbEnumerateNewDev (
     //\r
     if (Parent->Speed == EFI_USB_SPEED_HIGH) {\r
       Child->Translator.TranslatorHubAddress  = Parent->Address;\r
-      Child->Translator.TranslatorPortNumber  = Port + 1;\r
+      Child->Translator.TranslatorPortNumber  = (UINT8) (Port + 1);\r
 \r
     } else {\r
       Child->Translator = Parent->Translator;\r
index cd3e72e..e7a0c28 100644 (file)
@@ -35,8 +35,10 @@ STATIC USB_CLASS_FORMAT_DEVICE_PATH mAllUsbClassDevicePath = {
     {\r
       MESSAGING_DEVICE_PATH,\r
       MSG_USB_CLASS_DP,\r
-      (UINT8) (sizeof (USB_CLASS_DEVICE_PATH)),\r
-      (UINT8) ((sizeof (USB_CLASS_DEVICE_PATH)) >> 8)\r
+      {\r
+        (UINT8) (sizeof (USB_CLASS_DEVICE_PATH)),\r
+        (UINT8) ((sizeof (USB_CLASS_DEVICE_PATH)) >> 8)\r
+      }\r
     },\r
     0xffff, // VendorId\r
     0xffff, // ProductId\r
@@ -48,8 +50,10 @@ STATIC USB_CLASS_FORMAT_DEVICE_PATH mAllUsbClassDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    END_DEVICE_PATH_LENGTH,\r
-    0\r
+    {\r
+      END_DEVICE_PATH_LENGTH,\r
+      0\r
+    }\r
   }\r
 };\r
 \r