From: Denis Cheng Date: Mon, 12 Nov 2007 16:49:42 +0000 (+0800) Subject: SLUB: killed the unused "end" variable X-Git-Tag: v2.6.24-rc3~158 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=efe44183f6bab5b8acb6a6182d95274978c8abb1;p=linux-2.6-omap-h63xx.git SLUB: killed the unused "end" variable Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore. Signed-off-by: Denis Cheng Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 84f59fde1a1..9acb413858a 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);