]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IA64] eliminate NULL test and memset after alloc_bootmem
authorJulia Lawall <julia@diku.dk>
Mon, 1 Dec 2008 22:18:37 +0000 (14:18 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 9 Dec 2008 18:05:13 +0000 (10:05 -0800)
commit6afc9be1de0b938169d8985a3add0e3727ebc717
tree61022bcd2ac12619e827b4b73791524c86071fba
parentfc10212583996e248dde1da74cfeccd2f7e6b675
[IA64] eliminate NULL test and memset after alloc_bootmem

As noted by Akinobu Mita in patch b1fceac2b9e04d278316b2faddf276015fc06e3b,
alloc_bootmem and related functions never return NULL and always return a
zeroed region of memory.  Thus a NULL test or memset after calls to these
functions is unnecessary.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/setup.c