BUG_ON() Conversion in kernel/signal.c
authorEric Sesterhenn <snakebyte@gmx.de>
Sun, 2 Apr 2006 11:45:55 +0000 (13:45 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sun, 2 Apr 2006 11:45:55 +0000 (13:45 +0200)
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>
kernel/timer.c

index 6b812c04737b5b611c9d40257f8c3b28292955c4..c3a874f1393cd95d859267ed783a9edde8a8ff71 100644 (file)
@@ -1479,8 +1479,7 @@ register_time_interpolator(struct time_interpolator *ti)
        unsigned long flags;
 
        /* Sanity check */
-       if (ti->frequency == 0 || ti->mask == 0)
-               BUG();
+       BUG_ON(ti->frequency == 0 || ti->mask == 0);
 
        ti->nsec_per_cyc = ((u64)NSEC_PER_SEC << ti->shift) / ti->frequency;
        spin_lock(&time_interpolator_lock);