diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-01-08 01:00:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 20:12:43 -0800 |
commit | cd105df4590c89837a1c300843238148cfef9b5f (patch) | |
tree | bea54d8f24ad97d4af5fda6baac5711fa524af0e /mm/slab.c | |
parent | 152194aaa6266d71dfee57882a23def339ef17a4 (diff) | |
download | linux-3.10-cd105df4590c89837a1c300843238148cfef9b5f.tar.gz linux-3.10-cd105df4590c89837a1c300843238148cfef9b5f.tar.bz2 linux-3.10-cd105df4590c89837a1c300843238148cfef9b5f.zip |
[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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c index f71d8be2f4e..76b092bd0bf 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -854,7 +854,6 @@ static int __devinit cpuup_callback(struct notifier_block *nfb, struct kmem_list3 *l3 = NULL; int node = cpu_to_node(cpu); int memsize = sizeof(struct kmem_list3); - struct array_cache *nc = NULL; switch (action) { case CPU_UP_PREPARE: @@ -891,6 +890,8 @@ static int __devinit cpuup_callback(struct notifier_block *nfb, /* Now we can go ahead with allocating the shared array's & array cache's */ list_for_each_entry(cachep, &cache_chain, next) { + struct array_cache *nc; + nc = alloc_arraycache(node, cachep->limit, cachep->batchcount); if (!nc) |