ipc: clean up ipc/shm.c
authorWANG Cong <wangcong@zeuux.org>
Tue, 6 Jan 2009 22:42:49 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:29 +0000 (15:59 -0800)
commite8148f7588064e45080bf1120883380a2efe5c9b
tree3696d738d8e118632c456d77f4a0a4afdcfc98e5
parent8cd3ac3aca3f2afe8570708066d64d893da468e8
ipc: clean up ipc/shm.c

Use the macro shm_ids().

Remove useless check for a userspace pointer, because copy_to_user()
will check it.

Some style cleanups.

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Cc: Pierre Peiffer <peifferp@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/shm.c