diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -91,7 +91,6 @@ | |||
91 | 91 | ||
92 | #define sem_unlock(sma) ipc_unlock(&(sma)->sem_perm) | 92 | #define sem_unlock(sma) ipc_unlock(&(sma)->sem_perm) |
93 | #define sem_checkid(sma, semid) ipc_checkid(&sma->sem_perm, semid) | 93 | #define sem_checkid(sma, semid) ipc_checkid(&sma->sem_perm, semid) |
94 | #define sem_buildid(id, seq) ipc_buildid(id, seq) | ||
95 | 94 | ||
96 | static int newary(struct ipc_namespace *, struct ipc_params *); | 95 | static int newary(struct ipc_namespace *, struct ipc_params *); |
97 | static void freeary(struct ipc_namespace *, struct kern_ipc_perm *); | 96 | static void freeary(struct ipc_namespace *, struct kern_ipc_perm *); |
@@ -268,7 +267,6 @@ static int newary(struct ipc_namespace *ns, struct ipc_params *params) | |||
268 | } | 267 | } |
269 | ns->used_sems += nsems; | 268 | ns->used_sems += nsems; |
270 | 269 | ||
271 | sma->sem_perm.id = sem_buildid(id, sma->sem_perm.seq); | ||
272 | sma->sem_base = (struct sem *) &sma[1]; | 270 | sma->sem_base = (struct sem *) &sma[1]; |
273 | /* sma->sem_pending = NULL; */ | 271 | /* sma->sem_pending = NULL; */ |
274 | sma->sem_pending_last = &sma->sem_pending; | 272 | sma->sem_pending_last = &sma->sem_pending; |