summaryrefslogtreecommitdiffstats
path: root/ipc/namespace.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2016-08-02 14:07:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-02 19:35:44 -0400
commit3bd080e4d8f2351ee3e143f0ec9307cc95ae6639 (patch)
tree6a98d4479c9d51c72230beeede5b0382fe5973f5 /ipc/namespace.c
parenta4691deabf284a601149a067525759939cc563b2 (diff)
downloadop-kernel-dev-3bd080e4d8f2351ee3e143f0ec9307cc95ae6639.zip
op-kernel-dev-3bd080e4d8f2351ee3e143f0ec9307cc95ae6639.tar.gz
ipc: delete "nr_ipc_ns"
Write-only variable. Link: http://lkml.kernel.org/r/20160708214356.GA6785@p183.telecom.by Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/namespace.c')
-rw-r--r--ipc/namespace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c
index 04cb07e..d87e6ba 100644
--- a/ipc/namespace.c
+++ b/ipc/namespace.c
@@ -43,7 +43,6 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
kfree(ns);
return ERR_PTR(err);
}
- atomic_inc(&nr_ipc_ns);
sem_init_ns(ns);
msg_init_ns(ns);
@@ -96,7 +95,6 @@ static void free_ipc_ns(struct ipc_namespace *ns)
sem_exit_ns(ns);
msg_exit_ns(ns);
shm_exit_ns(ns);
- atomic_dec(&nr_ipc_ns);
put_user_ns(ns->user_ns);
ns_free_inum(&ns->ns);
OpenPOWER on IntegriCloud