aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2006-01-08 04:00:59 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-08 23:12:43 -0500
commitcd105df4590c89837a1c300843238148cfef9b5f (patch)
treebea54d8f24ad97d4af5fda6baac5711fa524af0e /mm/slab.c
parent152194aaa6266d71dfee57882a23def339ef17a4 (diff)
[PATCH] mm: clean up local variables
Clean up a local variable with the same name as a variable in a larger block. Also move a variable into the block where it's actually used. Spotted by http://linuxicc.sourceforge.net/ Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index f71d8be2f4e0..76b092bd0bf7 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -854,7 +854,6 @@ static int __devinit cpuup_callback(struct notifier_block *nfb,
854 struct kmem_list3 *l3 = NULL; 854 struct kmem_list3 *l3 = NULL;
855 int node = cpu_to_node(cpu); 855 int node = cpu_to_node(cpu);
856 int memsize = sizeof(struct kmem_list3); 856 int memsize = sizeof(struct kmem_list3);
857 struct array_cache *nc = NULL;
858 857
859 switch (action) { 858 switch (action) {
860 case CPU_UP_PREPARE: 859 case CPU_UP_PREPARE:
@@ -891,6 +890,8 @@ static int __devinit cpuup_callback(struct notifier_block *nfb,
891 /* Now we can go ahead with allocating the shared array's 890 /* Now we can go ahead with allocating the shared array's
892 & array cache's */ 891 & array cache's */
893 list_for_each_entry(cachep, &cache_chain, next) { 892 list_for_each_entry(cachep, &cache_chain, next) {
893 struct array_cache *nc;
894
894 nc = alloc_arraycache(node, cachep->limit, 895 nc = alloc_arraycache(node, cachep->limit,
895 cachep->batchcount); 896 cachep->batchcount);
896 if (!nc) 897 if (!nc)