]> err.no Git - linux-2.6/commit
[PATCH] BUG_ON() Conversion in net/tulip/de2104x.c
authorEric Sesterhenn / snakebyte <snakebyte@gmx.de>
Thu, 26 Jan 2006 21:02:43 +0000 (22:02 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 27 Jan 2006 15:33:16 +0000 (10:33 -0500)
commit7e0b58f32fb5e9c958078a6d722a7d0b230346a7
tree7bc1545f382d267f1768526e50beb8ab934ac06c
parenta707cd6e2d0a8c21dd8aeef8e4a0c0ccf8774fa9
[PATCH] BUG_ON() Conversion in net/tulip/de2104x.c

hi,

this changes if() BUG(); constructs to BUG_ON() which is
cleaner and can better optimized away

One of the if()s contains a call to de_is_running(),
which seems to be safe to replace, but someone with more
knownledge of the code might want to verify this...

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/tulip/de2104x.c