[rtems-libbsd commit] Hide unused section

Sebastian Huber sebh at rtems.org
Thu Apr 19 10:04:39 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    50af4dc67dc21f6124041d67652dee816289bc47
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=50af4dc67dc21f6124041d67652dee816289bc47

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Apr 19 12:05:05 2012 +0200

Hide unused section

Since "cold" is defined to 0 this code disappears if optimization is
enabled.

---

 freebsd/dev/usb/usb_process.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/freebsd/dev/usb/usb_process.c b/freebsd/dev/usb/usb_process.c
index 4ac7498..cfaa5ee 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);
 	}




More information about the vc mailing list