Hide unused section

Since "cold" is defined to 0 this code disappears if optimization is
enabled.
This commit is contained in:
Sebastian Huber
2012-04-19 12:05:05 +02:00
parent 2ba77729d2
commit 50af4dc67d

View File

@@ -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);
} }