From: Thomas Petazzoni Date: Tue, 29 Apr 2008 07:59:43 +0000 (-0700) Subject: directly use kmalloc() and kfree() in init/initramfs.c X-Git-Tag: v2.6.26-rc1~605 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3265e66b1825942c6e0fc457986cdf941a5f7d37;p=pandora-kernel.git 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 Signed-off-by: Matt Mackall Cc: Jan Engelhardt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed