Remove redundant #ifdef

This commit is contained in:
László Monda
2017-04-14 00:17:42 +02:00
parent 98fdcfc555
commit 5fd2d9ab50

View File

@@ -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**********************************************************************