From 98e33fa25fb8feeb66cbf20b9cba0d5adff3e658 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 29 May 2012 14:53:52 -0700 Subject: [PATCH] core: remove unused variable in scan_highmem_area() Remove a completely unused variable giving a "set but not used" warning. Signed-off-by: H. Peter Anvin --- core/mem/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/mem/init.c b/core/mem/init.c index 2951bb0..abfe23a 100644 --- a/core/mem/init.c +++ b/core/mem/init.c @@ -15,7 +15,6 @@ extern char free_high_memory[]; int scan_highmem_area(void *data, addr_t start, addr_t len, bool is_ram) { struct free_arena_header *fp; - addr_t end; (void)data; @@ -31,7 +30,6 @@ int scan_highmem_area(void *data, addr_t start, addr_t len, bool is_ram) } if (len > E820_MEM_MAX - start) len = E820_MEM_MAX - start; - end = start + len; if (len >= 2 * sizeof(struct arena_header)) { fp = (struct free_arena_header *)start; -- 2.7.4