[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210712125218.28951-1-rppt@kernel.org>
Date: Mon, 12 Jul 2021 15:52:18 +0300
From: Mike Rapoport <rppt@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Greentime Hu <green.hu@...il.com>,
kernel test robot <rong.a.chen@...el.com>,
Nick Hu <nickhu@...estech.com>,
Vincent Chen <deanbo422@...il.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Mike Rapoport <rppt@...ux.ibm.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] nds32/setup: remove unused memblock_region variable in setup_memory()
From: Mike Rapoport <rppt@...ux.ibm.com>
kernel test robot reports unused variable warning:
cppcheck possible warnings: (new ones prefixed by >>, may not real
problems)
>> arch/nds32/kernel/setup.c:247:26: warning: Unused variable: region
>> [unusedVariable]
struct memblock_region *region;
^
Remove the unused variable.
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Mike Rapoport <rppt@...ux.ibm.com>
---
arch/nds32/kernel/setup.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c
index 41725eaf8bac..b3d34d646652 100644
--- a/arch/nds32/kernel/setup.c
+++ b/arch/nds32/kernel/setup.c
@@ -244,7 +244,6 @@ static void __init setup_memory(void)
unsigned long ram_start_pfn;
unsigned long free_ram_start_pfn;
phys_addr_t memory_start, memory_end;
- struct memblock_region *region;
memory_end = memory_start = 0;
base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3
--
2.28.0
Powered by blists - more mailing lists