aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorPierre Peiffer <pierre.peiffer@bull.net>2008-04-29 04:00:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:13 -0400
commit21a4826a7c49bddebbe8d83d232f6416f1697ff0 (patch)
treebfcad90f4b6e29910a2571c749319d1323a7756a /ipc
parent522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447 (diff)
IPC/semaphores: remove one unused parameter from semctl_down()
semctl_down() takes one unused parameter: semnum. This patch proposes to get rid of it. Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net> Acked-by: Serge Hallyn <serue@us.ibm.com> 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>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/sem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 77162eddcbfc..db161decb764 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -880,8 +880,8 @@ static inline unsigned long copy_semid_from_user(struct sem_setbuf *out, void __
880 * to be held in write mode. 880 * to be held in write mode.
881 * NOTE: no locks must be held, the rw_mutex is taken inside this function. 881 * NOTE: no locks must be held, the rw_mutex is taken inside this function.
882 */ 882 */
883static int semctl_down(struct ipc_namespace *ns, int semid, int semnum, 883static int semctl_down(struct ipc_namespace *ns, int semid,
884 int cmd, int version, union semun arg) 884 int cmd, int version, union semun arg)
885{ 885{
886 struct sem_array *sma; 886 struct sem_array *sma;
887 int err; 887 int err;
@@ -972,7 +972,7 @@ asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg)
972 return err; 972 return err;
973 case IPC_RMID: 973 case IPC_RMID:
974 case IPC_SET: 974 case IPC_SET:
975 err = semctl_down(ns,semid,semnum,cmd,version,arg); 975 err = semctl_down(ns, semid, cmd, version, arg);
976 return err; 976 return err;
977 default: 977 default:
978 return -EINVAL; 978 return -EINVAL;