summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-19 12:05:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-19 12:07:43 +0200
commit50af4dc67dc21f6124041d67652dee816289bc47 (patch)
tree8eaa58aa457320e6f33cfb435395e0953a17e722
parentAdd kern_linker.c and dependencies (diff)
downloadrtems-libbsd-50af4dc67dc21f6124041d67652dee816289bc47.tar.bz2
Hide unused section
Since "cold" is defined to 0 this code disappears if optimization is enabled.
-rw-r--r--freebsd/dev/usb/usb_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/dev/usb/usb_process.c b/freebsd/dev/usb/usb_process.c
index 4ac74981..cfaa5ee6 100644
--- a/freebsd/dev/usb/usb_process.c
+++ b/freebsd/dev/usb/usb_process.c
@@ -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);
}