Skip to contentSkip to conversation

mm: cma: Remove unnecessary ‘0’ values from ret

PATCH Applied Li zeming 1 participant 1 message Dec 5, 2023

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 mm: cma: Remove unnecessary ‘0’ values from ret

The ret variable can be defined without assigning a value, as it is assigned before use.

---
 mm/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/cma.c +1 -1
index da2967c6a2238..f1d25b9f7ebc6 100644
@@ -244,7 +244,7 @@ int __init cma_declare_contiguous_nid(phys_addr_t base,
 {
 	phys_addr_t memblock_end = memblock_end_of_DRAM();
 	phys_addr_t highmem_start;
-	int ret = 0;
+	int ret;
 
 	/*
 	 * We can't use __pa(high_memory) directly, since high_memory
Signature · 1 line
2.18.2