Commit b1eecf7e04f34e3248ca8d14e49156da63f05117

Authored by Eric Sesterhenn
Committed by Adrian Bunk
1 parent 4401d13899

BUG_ON() Conversion in input/serio/hil_mlc.c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/input/serio/hil_mlc.c
... ... @@ -556,7 +556,7 @@
556 556 do_gettimeofday(&(mlc->instart));
557 557 mlc->icount = 15;
558 558 memset(mlc->ipacket, 0, 16 * sizeof(hil_packet));
559   - if (down_trylock(&(mlc->isem))) BUG();
  559 + BUG_ON(down_trylock(&(mlc->isem)));
560 560  
561 561 return;
562 562 }