[ccan] [PATCH 01/10] alloc: remove unused variable
Brad Hards
bradh at frogmouth.net
Tue Mar 8 20:28:04 EST 2011
lp_bits was only ever written to.
---
ccan/alloc/alloc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/ccan/alloc/alloc.c b/ccan/alloc/alloc.c
index 6447507..e9aaf3d 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))
--
1.7.1
More information about the ccan
mailing list