mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 10:27:12 +08:00
Hide unused section
Since "cold" is defined to 0 this code disappears if optimization is enabled.
This commit is contained in:
@@ -452,10 +452,14 @@ usb_proc_drain(struct usb_process *up)
|
||||
/* Check if we are still cold booted */
|
||||
|
||||
if (cold) {
|
||||
#ifndef __rtems__
|
||||
USB_THREAD_SUSPEND(up->up_ptr);
|
||||
printf("WARNING: A USB process has "
|
||||
"been left suspended\n");
|
||||
break;
|
||||
#else /* __rtems__ */
|
||||
BSD_ASSERT(0);
|
||||
#endif /* __rtems__ */
|
||||
}
|
||||
cv_wait(&up->up_cv, up->up_mtx);
|
||||
}
|
||||
|
Reference in New Issue
Block a user