]> git.baikalelectronics.ru Git - kernel.git/commit
uml: tidy process.c
authorJeff Dike <jdike@addtoit.com>
Sun, 6 May 2007 21:51:21 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:02 +0000 (12:13 -0700)
commitd566ff23d5d3c6854fa5e142af01a566136a9821
tree1e2bcf6ae8ac4a6e62766cb1cddf073410d4ea5c
parent9238b3401d379b85e281617e64a7e4311c8dae03
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