]> git.ozlabs.org Git - ccan/commitdiff
alloc: fix shadowed variable
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jul 2022 12:29:51 +0000 (21:59 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jul 2022 12:29:51 +0000 (21:59 +0930)
Thanks -Wshadow=local!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/antithread/alloc/alloc.c

index 1b36aa47e21c39c4d6b869b3aaaf791f27a55244..33201ab97a5d8745806c34e3074f57ff05e6eadc 100644 (file)
@@ -728,8 +728,6 @@ void *alloc_get(void *pool, unsigned long poolsize,
        bs = &head->bs[bucket];
 
        if (!bs->page_list) {
-               struct page_header *ph;
-
                if (large_page_bucket(bucket, sp_bits))
                        bs->page_list = get_large_page(head, poolsize,
                                                       sp_bits);