Skip to contentSkip to conversation

ARM: mvebu: remove unused val in mvebu_scan_mem

PATCH New yangerkun 1 participant 1 message Jun 4, 2021

Subsystems (3)
lore
Share & tools
lore

yangerkun

author
#0 lore raw

PATCH 1/1 ARM: mvebu: remove unused val in mvebu_scan_mem

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.

---
 arch/arm/mach-mvebu/board-v7.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/board-v7.c +2 -2
index d2df5ef9382b..40e33fd4ec2a 100644
@@ -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);
 	}
Signature · 7 lines
2.31.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel