path: root/ipc
diff options
authorPierre Peiffer <>2008-04-29 01:00:49 -0700
committerLinus Torvalds <>2008-04-29 08:06:13 -0700
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 <> Acked-by: Serge Hallyn <> Cc: Nadia Derbey <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'ipc')
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 77162eddcbf..db161decb76 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 __
* to be held in write mode.
* NOTE: no locks must be held, the rw_mutex is taken inside this function.
-static int semctl_down(struct ipc_namespace *ns, int semid, int semnum,
- int cmd, int version, union semun arg)
+static int semctl_down(struct ipc_namespace *ns, int semid,
+ int cmd, int version, union semun arg)
struct sem_array *sma;
int err;
@@ -972,7 +972,7 @@ asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg)
return err;
case IPC_RMID:
case IPC_SET:
- err = semctl_down(ns,semid,semnum,cmd,version,arg);
+ err = semctl_down(ns, semid, cmd, version, arg);
return err;
return -EINVAL;