lkml.org 
[lkml]   [2008]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 2.6.24-mm1 5/8] (resend) IPC/semaphores: remove one unused parameter from semctl_down()
    From: Pierre Peiffer <pierre.peiffer@bull.net>

    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>
    ---
    ipc/sem.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    Index: b/ipc/sem.c
    ===================================================================
    --- a/ipc/sem.c
    +++ b/ipc/sem.c
    @@ -880,8 +880,8 @@ static inline unsigned long copy_semid_f
    * 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, i
    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;
    default:
    return -EINVAL;
    --
    Pierre Peiffer


    \
     
     \ /
      Last update: 2008-02-12 17:33    [W:0.050 / U:58.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site