Commit 4196810a authored by Li zeming's avatar Li zeming Committed by Andrew Morton

mm: cma: remove unnecessary initialization of ret

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

Link: https://lkml.kernel.org/r/20231205021751.100459-1-zeming@nfschina.comSigned-off-by: default avatarLi zeming <zeming@nfschina.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foudation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 49b960de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment