>Could you use BUG_ON ? It might shave off a cycle or two.

        No.  BUG_ON(condition) should be able to be safely defined as
nothing for systems that want to run fast at the expense of having no
assertion debugging.  Therefore, BUG_ON(condition) can only be used
when the condition has no relevant side-effects.  In this case, the
condition does have an important side effect: it takes the lock.  It
must be executed, regardless of whether the system is compiled for
assertion debugging or not.  Therefore, BUG_ON() should not be used in
this case.

Adam J. Richter     __     ______________   575 Oroville Road
[EMAIL PROTECTED]     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to