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

Message ID 20231205021751.100459-1-zeming@nfschina.com
State New
Headers
Series mm: cma: Remove unnecessary ‘0’ values from ret |

Commit Message

Li zeming Dec. 5, 2023, 2:17 a.m. UTC
  The ret variable can be defined without assigning a value, as it is
assigned before use.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 mm/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/mm/cma.c b/mm/cma.c
index da2967c6a2238..f1d25b9f7ebc6 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -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