Skip to contentSkip to conversation

ns_cgroup: remove unused spinlock

PATCH New Li Zefan 1 participant 1 message Nov 21, 2008

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 ns_cgroup: remove unused spinlock

I happened to find the spinlock in struct ns_cgroup is never used.

---
 kernel/ns_cgroup.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
kernel/ns_cgroup.c +0 -2
index 43c2111..78bc3fd 100644
@@ -13,7 +13,6 @@
 
 struct ns_cgroup {
 	struct cgroup_subsys_state css;
-	spinlock_t lock;
 };
 
 struct cgroup_subsys ns_subsys;
@@ -84,7 +83,6 @@ static struct cgroup_subsys_state *ns_create(struct cgroup_subsys *ss,
 	ns_cgroup = kzalloc(sizeof(*ns_cgroup), GFP_KERNEL);
 	if (!ns_cgroup)
 		return ERR_PTR(-ENOMEM);
-	spin_lock_init(&ns_cgroup->lock);
 	return &ns_cgroup->css;
 }
 
Signature · 1 line
1.5.4.rc3