Commit fbc78770 authored by Brad Hards's avatar Brad Hards Committed by Rusty Russell

alloc: remove unused variable

lp_bits was only ever written to.
parent fb1dfd09
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment