projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b960d
)
mm: cma: remove unnecessary initialization of ret
author
Li zeming
<zeming@nfschina.com>
Tue, 5 Dec 2023 02:17:51 +0000
(10:17 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Tue, 12 Dec 2023 18:57:08 +0000
(10:57 -0800)
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>
mm/cma.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/cma.c
b/mm/cma.c
index 2b2494fd6b59a6832b16c83b06ce2d6d454a66de..7c09c47e530bf624fd05cfec3456fbf2346446e3 100644
(file)
--- 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