uml: tidy process.c
commit6e21aec3fcf6c8862b755d45c0af45acdefff976
authorJeff Dike <jdike@addtoit.com>
Sun, 6 May 2007 21:51:21 +0000 (6 14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:02 +0000 (7 12:13 -0700)
tree1e2bcf6ae8ac4a6e62766cb1cddf073410d4ea5c
parent65a58ab044308ae65ca06c50fb10be5e0e080989
uml: tidy process.c

Clean up arch/um/kernel/process.c:

- lots of return(x); -> return x; conversions

- a number of the small functions are either unused, in which case they are
  gone, along any declarations in a header, or could be made static.

- current_pid is ifdefed on CONFIG_MODE_TT and its declaration is ifdefed on
  both CONFIG_MODE_TT and UML_CONFIG_MODE_TT because we don't know whether
  it's being used in a userspace or kernel file.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/kern_util.h
arch/um/include/tt/uaccess-tt.h
arch/um/include/um_malloc.h
arch/um/kernel/process.c