Re: BUGed to death

Andrew Morton (akpm@digeo.com)
Mon, 14 Apr 2003 14:50:28 -0700


Dave Jones <davej@codemonkey.org.uk> wrote:
>
> On Mon, Apr 14, 2003 at 01:55:40PM -0700, Martin J. Bligh wrote:
>
> > True - however I should have included some more info ... Andrew worked
> > out that some of the hottest ones lead to a null ptr dereference
> > immediately afterwards anyways, so they're actually pointless.
>
> Erk, that doesn't sound good. Example ?
>

if (foo == NULL)
BUG();
*foo = bar;

The BUG is a waste of space.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/