From 50af4dc67dc21f6124041d67652dee816289bc47 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Apr 2012 12:05:05 +0200 Subject: [PATCH] Hide unused section Since "cold" is defined to 0 this code disappears if optimization is enabled. --- freebsd/dev/usb/usb_process.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }