summaryrefslogtreecommitdiff
path: root/mm/slub.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-11-12 19:49:42 +0300
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-12 21:32:29 +0300
commitefe44183f6bab5b8acb6a6182d95274978c8abb1 (patch)
tree86a1c11218644190c30a7c03931e5ca2c6e2e12e /mm/slub.c
parent00ec99da43a7c2aed46c6595aa271b84bb1b1462 (diff)
downloadlinux-efe44183f6bab5b8acb6a6182d95274978c8abb1.tar.xz
SLUB: killed the unused "end" variable
Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore. Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 84f59fde1a10..9acb413858ac 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1080,7 +1080,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
struct page *page;
struct kmem_cache_node *n;
void *start;
- void *end;
void *last;
void *p;
@@ -1101,7 +1100,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
SetSlabDebug(page);
start = page_address(page);
- end = start + s->objects * s->size;
if (unlikely(s->flags & SLAB_POISON))
memset(start, POISON_INUSE, PAGE_SIZE << s->order);