Skip to content

Commit

Permalink
mm: cma: remove unnecessary initialization of ret
Browse files Browse the repository at this point in the history
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.com
Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed-by: Andrew Morton <akpm@linux-foudation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Li zeming authored and Andrew Morton committed Dec 12, 2023
1 parent 49b960d commit 4196810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4196810

Please sign in to comment.