2023-12-05 02:18:15

by Li zeming

[permalink] [raw]
Subject: [PATCH] mm: cma: Remove unnecessary ‘0’ values from ret

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

Signed-off-by: Li zeming <[email protected]>
---
mm/cma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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
--
2.18.2