RE: [PATCH 3/14] arch/ia64: Eliminate NULL test and memset afteralloc_bootmem

From: Julia Lawall
Date: Tue Jun 24 2008 - 14:00:37 EST


On Tue, 24 Jun 2008, Luck, Tony wrote:

> > In addition the current alloc_bootmem() is a macro that uses __alloc_bootmem
> > which most defintely can return NULL.
>
> ...
> panic("Out of memory");
> return NULL;
> }
>
> Oops ... that "panic" call before the "return NULL" makes the
> above statement totally wrong.

Thanks. I was worried there might be somewhere a non-aborting version of
panic. But that would be really confusing...

julia

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