From 9085457c819add4d580882a047f49c22859833ac Mon Sep 17 00:00:00 2001 From: zwei4 Date: Thu, 11 May 2017 14:14:48 +0800 Subject: Fix some GCC build errors. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c') diff --git a/Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c b/Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c index 47c5b80bd4..2c1e929ab7 100644 --- a/Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c +++ b/Platform/BroxtonPlatformPkg/Common/Features/UsbDeviceDxe/XdciDWC.c @@ -15,7 +15,6 @@ #include "XdciInterface.h" #include "XdciDWC.h" -#pragma optimize ("", off) UINT32 UsbRegRead ( @@ -3628,8 +3627,8 @@ UsbXdciCoreReinit ( DWC_XDCI_DCTL_REG, UsbRegRead (BaseAddr, DWC_XDCI_DCTL_REG) & (~DWC_XDCI_DCTL_KEEP_CONNECT_MASK) & - (~DWC_XDCI_DCTL_STATE_CHANGE_REQ_MASK) | - (DWC_XDCI_DCTL_STATE_CHANGE_REQ_RX_DETECT << DWC_XDCI_DCTL_STATE_CHANGE_REQ_BIT_POS) + ((~DWC_XDCI_DCTL_STATE_CHANGE_REQ_MASK) | + (DWC_XDCI_DCTL_STATE_CHANGE_REQ_RX_DETECT << DWC_XDCI_DCTL_STATE_CHANGE_REQ_BIT_POS)) ); DEBUG ((DEBUG_INFO, "Device controller Synopsys ID: %x\n", UsbRegRead (BaseAddr, DWC_XDCI_GSNPSID_REG))); @@ -4029,5 +4028,3 @@ UsbXdciCoreFlushEpFifo ( return Status; } -#pragma optimize ("", on) - -- cgit v1.2.3