From 5fd2d9ab502c8bd9f8185a9d9167627eaf30b424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 14 Apr 2017 00:17:42 +0200 Subject: [PATCH] Remove redundant #ifdef --- right/src/buspal/bus_pal_hardware.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/right/src/buspal/bus_pal_hardware.c b/right/src/buspal/bus_pal_hardware.c index a0389c6..f5b4b5f 100644 --- a/right/src/buspal/bus_pal_hardware.c +++ b/right/src/buspal/bus_pal_hardware.c @@ -228,10 +228,7 @@ void usb_device_full_shutdown(const peripheral_descriptor_t *self) // Shutdown class driver usb_device_hid_generic_deinit(&g_device_composite); -// Make sure we are clocking to the peripheral to ensure there -// are no bus errors -#if defined(PCC_BASE_ADDRS) -#else + // Make sure we are clocking to the peripheral to ensure there are no bus errors if ((CONTROLLER_ID == kUSB_ControllerKhci0) && (SIM->SCGC4 & SIM_SCGC4_USBOTG_MASK)) { // Disable the USB interrupt @@ -243,7 +240,6 @@ void usb_device_full_shutdown(const peripheral_descriptor_t *self) // Turn off clocking to USB SIM->SCGC4 &= ~SIM_SCGC4_USBOTG_MASK; } -#endif } /*FUNCTION**********************************************************************