* [PATCH] mm: cma: Remove unnecessary ‘0’ values from ret
@ 2023-12-05 2:17 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2023-12-05 2:17 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Li zeming
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(-)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-05 2:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 2:17 [PATCH] mm: cma: Remove unnecessary ‘0’ values from ret Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®