signal.c: convert assertion to BUG_ON()

From: Pavel Machek
Date: Sat Dec 25 2004 - 12:34:20 EST


Hi!

Convert assertion code to BUG_ON(). Please apply,
Pavel

Signed-off-by: Pavel Machek <pavel@xxxxxxx>

--- clean-cvs/kernel/signal.c 2004-11-19 12:21:32.000000000 +0100
+++ linux-cvs/kernel/signal.c 2004-12-10 22:35:59.000000000 +0100
@@ -1442,8 +1442,7 @@
unsigned long flags;
struct sighand_struct *psig;

- if (sig == -1)
- BUG();
+ BUG_ON(sig == -1);

/* do_notify_parent_cldstop should have been called instead. */
BUG_ON(tsk->state & (TASK_STOPPED|TASK_TRACED));


--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/