Commit 9f31252cb61d5bc641cdef8a069a2ca5a77855f2
Committed by
Adrian Bunk
1 parent
fda8bd78a1
Exists in
master
and in
7 other branches
BUG_ON() Conversion in kernel/signal.c
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() 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 2 deletions Side-by-side Diff
kernel/timer.c
... | ... | @@ -1479,8 +1479,7 @@ |
1479 | 1479 | unsigned long flags; |
1480 | 1480 | |
1481 | 1481 | /* Sanity check */ |
1482 | - if (ti->frequency == 0 || ti->mask == 0) | |
1483 | - BUG(); | |
1482 | + BUG_ON(ti->frequency == 0 || ti->mask == 0); | |
1484 | 1483 | |
1485 | 1484 | ti->nsec_per_cyc = ((u64)NSEC_PER_SEC << ti->shift) / ti->frequency; |
1486 | 1485 | spin_lock(&time_interpolator_lock); |