]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
BUG_ON() Conversion in input/serio/hil_mlc.c
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 24 Mar 2006 17:37:43 +0000 (18:37 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 24 Mar 2006 17:37:43 +0000 (18:37 +0100)
this changes if() BUG(); constructs to BUG_ON() which is
cleaner and can better optimized away

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/input/serio/hil_mlc.c

index 5704204964a3545caac7c19bdc46999218ea139a..ea499783fb12f76ccc8d5723a2ffdef4a2487b5e 100644 (file)
@@ -556,7 +556,7 @@ static inline void hilse_setup_input(hil_mlc *mlc, struct hilse_node *node) {
        do_gettimeofday(&(mlc->instart));
        mlc->icount = 15;
        memset(mlc->ipacket, 0, 16 * sizeof(hil_packet));
-       if (down_trylock(&(mlc->isem))) BUG();
+       BUG_ON(down_trylock(&(mlc->isem)));
 
        return;
 }