[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231205021751.100459-1-zeming@nfschina.com>
Date: Tue, 5 Dec 2023 10:17:51 +0800
From: Li zeming <zeming@...china.com>
To: akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Li zeming <zeming@...china.com>
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 <zeming@...china.com>
---
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
Powered by blists - more mailing lists