]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
directly use kmalloc() and kfree() in init/initramfs.c
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 29 Apr 2008 07:59:43 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:06 +0000 (08:06 -0700)
commit3265e66b1825942c6e0fc457986cdf941a5f7d37
tree9ea1d7eee09d60bad4a5ebc4140088a0203de7af
parent5f97a5a8799b8d7d0afdb9d68a50a4e0e8298a05
directly use kmalloc() and kfree() in init/initramfs.c

Instead of using the malloc() and free() wrappers needed by the
lib/inflate.c code for allocations, simply use kmalloc() and kfree() in the
initramfs code.  This is needed for a further lib/inflate.c-related cleanup
patch that will remove the malloc() and free() functions.

Take that opportunity to remove the useless kmalloc() return value
cast.

Based on work done by Matt Mackall.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/initramfs.c