DORMANTno replies

[PATCH] ARM: mvebu: remove unused val in mvebu_scan_mem

From: yangerkun <hidden>
Date: 2021-06-04 08:02:52
Subsystem: arm port, arm/marvell kirkwood and armada 370, 375, 38x, 39x, xp, 3700, 7k/8k, cn9130 soc support, the rest · Maintainers: Russell King, Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Linus Torvalds

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 <redacted>
Signed-off-by: yangerkun <redacted>
---
 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, &reg);
-		size = dt_mem_next_cell(dt_root_size_cells, &reg);
+		dt_mem_next_cell(dt_root_size_cells, &reg);
 
 		memblock_reserve(base, MVEBU_DDR_TRAINING_AREA_SZ);
 	}
-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help