diff options
author | 2007-10-18 23:40:55 -0700 | |
---|---|---|
committer | 2007-10-19 11:53:48 -0700 | |
commit | 1b531f213661657d6e1c55cf5c97f649d630c227 (patch) | |
tree | 0e03a4f286a12b383b9de455c0f39946df867fb7 /ipc/shm.c | |
parent | fix idr_find() locking (diff) | |
download | linux-1b531f213661657d6e1c55cf5c97f649d630c227.tar.gz linux-1b531f213661657d6e1c55cf5c97f649d630c227.tar.bz2 linux-1b531f213661657d6e1c55cf5c97f649d630c227.zip |
ipc: remove unneeded parameters
Remvoe the unneeded parameters from ipc_checkid() and ipc_buildid()
interfaces.
Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ipc/shm.c b/ipc/shm.c index b27d31f3aaba..05c97c7513c2 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -61,8 +61,7 @@ static struct ipc_ids init_shm_ids; #define shm_unlock(shp) \ ipc_unlock(&(shp)->shm_perm) -#define shm_buildid(ns, id, seq) \ - ipc_buildid(&shm_ids(ns), id, seq) +#define shm_buildid(id, seq) ipc_buildid(id, seq) static int newseg(struct ipc_namespace *, struct ipc_params *); static void shm_open(struct vm_area_struct *vma); @@ -445,7 +444,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) shp->shm_ctim = get_seconds(); shp->shm_segsz = size; shp->shm_nattch = 0; - shp->shm_perm.id = shm_buildid(ns, id, shp->shm_perm.seq); + shp->shm_perm.id = shm_buildid(id, shp->shm_perm.seq); shp->shm_file = file; /* * shmid gets reported as "inode#" in /proc/pid/maps. |