it's necessary for efficency of code. when someCodition is FALSE, it's no cost on BUG(). but when you changed to BUG_ON(), there is always a cost on BUG_ON() both TRUE and FALSE.
On Thu, Jul 3, 2008 at 12:08 PM, Stoyan Gaydarov <[EMAIL PROTECTED]> wrote: > I was wondering if someone could clear something up for me. > Is this desired or is it an unneeded change: > > from: > > if(someCondition) > BUG(); > > to: > > BUG_ON(sameCondition); > > if it is desired then would anyone care if I took a crack at it? > > > Stoyan Gaydarov > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to [EMAIL PROTECTED] > Please read the FAQ at http://kernelnewbies.org/FAQ > >
