Commit 21a4826a authored by Pierre Peiffer's avatar Pierre Peiffer Committed by Linus Torvalds

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: default avatarPierre Peiffer <pierre.peiffer@bull.net>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 522bb2a2
...@@ -880,8 +880,8 @@ static inline unsigned long copy_semid_from_user(struct sem_setbuf *out, void __ ...@@ -880,8 +880,8 @@ static inline unsigned long copy_semid_from_user(struct sem_setbuf *out, void __
* to be held in write mode. * to be held in write mode.
* NOTE: no locks must be held, the rw_mutex is taken inside this function. * 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, static int semctl_down(struct ipc_namespace *ns, int semid,
int cmd, int version, union semun arg) int cmd, int version, union semun arg)
{ {
struct sem_array *sma; struct sem_array *sma;
int err; int err;
...@@ -972,7 +972,7 @@ asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg) ...@@ -972,7 +972,7 @@ asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg)
return err; return err;
case IPC_RMID: case IPC_RMID:
case IPC_SET: case IPC_SET:
err = semctl_down(ns,semid,semnum,cmd,version,arg); err = semctl_down(ns, semid, cmd, version, arg);
return err; return err;
default: default:
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment