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>
This commit is contained in:
Eric Sesterhenn
2006-04-02 13:44:47 +02:00
committed by Adrian Bunk
parent 524223ca81
commit fda8bd78a1

View File

@@ -769,8 +769,7 @@ specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
{ {
int ret = 0; int ret = 0;
if (!irqs_disabled()) BUG_ON(!irqs_disabled());
BUG();
assert_spin_locked(&t->sighand->siglock); assert_spin_locked(&t->sighand->siglock);
/* Short-circuit ignored signals. */ /* Short-circuit ignored signals. */
@@ -1384,8 +1383,7 @@ send_group_sigqueue(int sig, struct sigqueue *q, struct task_struct *p)
* the overrun count. Other uses should not try to * the overrun count. Other uses should not try to
* send the signal multiple times. * send the signal multiple times.
*/ */
if (q->info.si_code != SI_TIMER) BUG_ON(q->info.si_code != SI_TIMER);
BUG();
q->info.si_overrun++; q->info.si_overrun++;
goto out; goto out;
} }