Commit 2c0c29d4 authored by Manfred Spraul's avatar Manfred Spraul Committed by Linus Torvalds

ipc/sem.c: remove unused entries from struct sem_queue

sem_queue.sma and sem_queue.id were never used, the attached patch removes
them.
Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
Reviewed-by: default avatarNadia Derbey <Nadia.Derbey@bull.net>
Cc: Pierre Peiffer <peifferp@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4daa28f6
...@@ -107,8 +107,6 @@ struct sem_queue { ...@@ -107,8 +107,6 @@ struct sem_queue {
struct sem_undo * undo; /* undo structure */ struct sem_undo * undo; /* undo structure */
int pid; /* process id of requesting process */ int pid; /* process id of requesting process */
int status; /* completion status of operation */ int status; /* completion status of operation */
struct sem_array * sma; /* semaphore array for operations */
int id; /* internal sem id */
struct sembuf * sops; /* array of pending operations */ struct sembuf * sops; /* array of pending operations */
int nsops; /* number of operations */ int nsops; /* number of operations */
int alter; /* does the operation alter the array? */ int alter; /* does the operation alter the array? */
......
...@@ -1160,12 +1160,10 @@ asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops, ...@@ -1160,12 +1160,10 @@ asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,
* task into the pending queue and go to sleep. * task into the pending queue and go to sleep.
*/ */
queue.sma = sma;
queue.sops = sops; queue.sops = sops;
queue.nsops = nsops; queue.nsops = nsops;
queue.undo = un; queue.undo = un;
queue.pid = task_tgid_vnr(current); queue.pid = task_tgid_vnr(current);
queue.id = semid;
queue.alter = alter; queue.alter = alter;
if (alter) if (alter)
append_to_queue(sma ,&queue); append_to_queue(sma ,&queue);
......
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