From fd0d484170528a47463d9d7ffd6a3b43cd4365e9 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Fri, 6 Feb 2009 06:17:01 +0000 Subject: [PATCH] clean ecc git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7461 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h | 8 +++----- MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.h | 7 +++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h b/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h index c835b66d7a..d5213284ce 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h +++ b/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h @@ -27,17 +27,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define USB_HC_HIGH_32BIT(Addr64) \ ((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF)) -typedef struct _USBHC_MEM_BLOCK USBHC_MEM_BLOCK; - -struct _USBHC_MEM_BLOCK { +typedef struct _USBHC_MEM_BLOCK { UINT8 *Bits; // Bit array to record which unit is allocated UINTN BitsLen; UINT8 *Buf; UINT8 *BufHost; UINTN BufLen; // Memory size in bytes VOID *Mapping; - USBHC_MEM_BLOCK *Next; -}; + struct _USBHC_MEM_BLOCK *Next; +} USBHC_MEM_BLOCK; // // USBHC_MEM_POOL is used to manage the memory used by USB diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.h b/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.h index 40a5c1d592..7a74639cc0 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.h +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.h @@ -26,17 +26,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define USB_HC_HIGH_32BIT(Addr64) \ ((UINT32)(RShiftU64((UINTN)(Addr64), 32) & 0XFFFFFFFF)) -typedef struct _USBHC_MEM_BLOCK USBHC_MEM_BLOCK; -struct _USBHC_MEM_BLOCK { +typedef struct _USBHC_MEM_BLOCK { UINT8 *Bits; // Bit array to record which unit is allocated UINTN BitsLen; UINT8 *Buf; UINT8 *BufHost; UINTN BufLen; // Memory size in bytes VOID *Mapping; - USBHC_MEM_BLOCK *Next; -}; + struct _USBHC_MEM_BLOCK *Next; +} USBHC_MEM_BLOCK; // // USBHC_MEM_POOL is used to manage the memory used by USB -- 2.39.2