]> git.baikalelectronics.ru Git - kernel.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)
commita0cb72d2378595e95af33a33b5fa890430317b89
tree61022bcd2ac12619e827b4b73791524c86071fba
parent9312614be2a735761960b34fe0d8871ad7c8827f
[IA64] eliminate NULL test and memset after alloc_bootmem

As noted by Akinobu Mita in patch 9f40b695c93db287b5444460e0d77178fe4e7dd0,
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