mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ipc: remove unneeded parameters
Remvoe the unneeded parameters from ipc_checkid() and ipc_buildid() interfaces. Signed-off-by: Nadia Derbey <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3e148c7993
commit
1b531f2136
4 changed files with 12 additions and 17 deletions
|
|
@ -74,8 +74,7 @@ static struct ipc_ids init_msg_ids;
|
|||
#define msg_ids(ns) (*((ns)->ids[IPC_MSG_IDS]))
|
||||
|
||||
#define msg_unlock(msq) ipc_unlock(&(msq)->q_perm)
|
||||
#define msg_buildid(ns, id, seq) \
|
||||
ipc_buildid(&msg_ids(ns), id, seq)
|
||||
#define msg_buildid(id, seq) ipc_buildid(id, seq)
|
||||
|
||||
static void freeque(struct ipc_namespace *, struct msg_queue *);
|
||||
static int newque(struct ipc_namespace *, struct ipc_params *);
|
||||
|
|
@ -211,7 +210,7 @@ static int newque(struct ipc_namespace *ns, struct ipc_params *params)
|
|||
return -ENOSPC;
|
||||
}
|
||||
|
||||
msq->q_perm.id = msg_buildid(ns, id, msq->q_perm.seq);
|
||||
msq->q_perm.id = msg_buildid(id, msq->q_perm.seq);
|
||||
msq->q_stime = msq->q_rtime = 0;
|
||||
msq->q_ctime = get_seconds();
|
||||
msq->q_cbytes = msq->q_qnum = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue