From fbc7877063275421c4313ea30a65378d48dd4f07 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Tue, 8 Mar 2011 20:28:04 +1100 Subject: [PATCH] alloc: remove unused variable lp_bits was only ever written to. --- ccan/alloc/alloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ccan/alloc/alloc.c b/ccan/alloc/alloc.c index 64475078..e9aaf3dd 100644 --- a/ccan/alloc/alloc.c +++ b/ccan/alloc/alloc.c @@ -467,9 +467,7 @@ static void recombine_small_pages(struct header *head, unsigned long poolsize, static u16 get_large_page(struct header *head, unsigned long poolsize, unsigned int sp_bits) { - unsigned int lp_bits, page; - - lp_bits = sp_bits + BITS_FROM_SMALL_TO_LARGE_PAGE; + unsigned int page; page = pop_from_list(head, &head->large_free_list, sp_bits); if (likely(page)) -- 2.39.2