]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IPC/semaphores: consolidate SEM_STAT and IPC_STAT commands
authorPierre Peiffer <pierre.peiffer@bull.net>
Fri, 8 Feb 2008 12:18:56 +0000 (04:18 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:26 +0000 (09:22 -0800)
commit4b9fcb0ec60584d639ad105c42b75a3447071e47
treeb68be0c60ca985901cd20c0b8a7321e8be07d328
parentb2d75cddc83a349ef5633f609b9734b6b957f90f
IPC/semaphores: consolidate SEM_STAT and IPC_STAT commands

These commands (SEM_STAT and IPC_STAT) are rather doing the same things
(only the meaning of the id given as input and the return value differ).
However, for the semaphores, they are handled in two different places (two
different functions).

This patch consolidates this for clarification by handling these both
commands in the same place in semctl_nolock().  It also removes one unused
parameter for this function.

Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/sem.c