Re: signal.c: convert assertion to BUG_ON()

From: Olaf Titz
Date: Sat Dec 25 2004 - 15:28:42 EST


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

Can sig be < -1? If not, this should probably be BUG_ON(sig < 0)
(common defensive coding rule...)

Olaf

-
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/