mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 18:41:59 +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 */
|
/* Check if we are still cold booted */
|
||||||
|
|
||||||
if (cold) {
|
if (cold) {
|
||||||
|
#ifndef __rtems__
|
||||||
USB_THREAD_SUSPEND(up->up_ptr);
|
USB_THREAD_SUSPEND(up->up_ptr);
|
||||||
printf("WARNING: A USB process has "
|
printf("WARNING: A USB process has "
|
||||||
"been left suspended\n");
|
"been left suspended\n");
|
||||||
break;
|
break;
|
||||||
|
#else /* __rtems__ */
|
||||||
|
BSD_ASSERT(0);
|
||||||
|
#endif /* __rtems__ */
|
||||||
}
|
}
|
||||||
cv_wait(&up->up_cv, up->up_mtx);
|
cv_wait(&up->up_cv, up->up_mtx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user