]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] signal.c: convert assertion to BUG_ON()
authorPavel Machek <pavel@ucw.cz>
Tue, 11 Jan 2005 01:18:54 +0000 (17:18 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 01:18:54 +0000 (17:18 -0800)
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/signal.c

index 9438a2c0c8ca35f267a2e3ab327ac4d58f8890a9..d800b3f97323f36b229a2217d397fa1b09736d93 100644 (file)
@@ -1456,8 +1456,7 @@ void do_notify_parent(struct task_struct *tsk, int sig)
        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));