diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2021-07-12 15:52:18 +0300 |
---|---|---|
committer | Greentime Hu <green.hu@gmail.com> | 2021-09-09 00:48:14 +0800 |
commit | 07cd7745c6f2081dac0aff7f57ea2b48c86de5fa (patch) | |
tree | f3e0b0bd9272f364ee02ece498787ffaa628d191 | |
parent | 36b9b19753937a6fe0e591b518d46a1f2efae679 (diff) | |
download | linux-next.tar.gz |
nds32/setup: remove unused memblock_region variable in setup_memory()next
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@intel.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greentime Hu <green.hu@gmail.com>
-rw-r--r-- | arch/nds32/kernel/setup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index 41725eaf8bac6..b3d34d6466521 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; |