projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4401d13
)
BUG_ON() Conversion in input/serio/hil_mlc.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 24 Mar 2006 17:37:43 +0000
(18:37 +0100)
committer
Adrian 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/serio/hil_mlc.c
b/drivers/input/serio/hil_mlc.c
index 5704204964a3545caac7c19bdc46999218ea139a..ea499783fb12f76ccc8d5723a2ffdef4a2487b5e 100644
(file)
--- a/
drivers/input/serio/hil_mlc.c
+++ b/
drivers/input/serio/hil_mlc.c
@@
-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;
}