[PATCH] ARM: mvebu: remove unused val in mvebu_scan_mem
yangerkun
yangerkun at huawei.com
Fri Jun 4 01:09:50 PDT 2021
arch/arm/mach-mvebu/board-v7.c:87:13: warning: variable ‘size’ set but
not used [-Wunused-but-set-variable]
87 | u64 base, size;
| ^~~~
Remove the unused define to fix the warning.
Reported-by: Hulk Robot <hulkci at huawei.com>
Signed-off-by: yangerkun <yangerkun at huawei.com>
---
arch/arm/mach-mvebu/board-v7.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c
index d2df5ef9382b..40e33fd4ec2a 100644
--- a/arch/arm/mach-mvebu/board-v7.c
+++ b/arch/arm/mach-mvebu/board-v7.c
@@ -84,10 +84,10 @@ static int __init mvebu_scan_mem(unsigned long node, const char *uname,
endp = reg + (l / sizeof(__be32));
while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) {
- u64 base, size;
+ u64 base;
base = dt_mem_next_cell(dt_root_addr_cells, ®);
- size = dt_mem_next_cell(dt_root_size_cells, ®);
+ dt_mem_next_cell(dt_root_size_cells, ®);
memblock_reserve(base, MVEBU_DDR_TRAINING_AREA_SZ);
}
--
2.31.1
More information about the linux-arm-kernel
mailing list