alloc_uid: cleanup
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Apr 2008 07:54:54 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:53 +0000 (08:29 -0700)
commit354a1f4d99240f53980275416ca3e1ac2ee73d5d
tree2c595555d897a5cc09b6449cb0cd3aac9c11ac79
parent487798df6d25e76ed6558b3e17c44cf0458cc6f3
alloc_uid: cleanup

Use kmem_cache_zalloc(), remove large amounts of initialisation code and
ifdeffery.

Note: this assumes that memset(*atomic_t, 0) correctly initialises the
atomic_t.  This is true for all present archtiectures and if it becomes false
for a future architecture then we'll need to make large changes all over the
place anyway.

Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/user.c