Commit 9d1936cf authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Jiri Kosina

mm/sparse: Remove unused ret in sparse_index_init

The ret variable is not used in the function, so remove it and
directly return 0 at the end of the function.
Signed-off-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c2b3ebd0
...@@ -79,7 +79,6 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid) ...@@ -79,7 +79,6 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid)
{ {
unsigned long root = SECTION_NR_TO_ROOT(section_nr); unsigned long root = SECTION_NR_TO_ROOT(section_nr);
struct mem_section *section; struct mem_section *section;
int ret = 0;
if (mem_section[root]) if (mem_section[root])
return -EEXIST; return -EEXIST;
...@@ -90,7 +89,7 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid) ...@@ -90,7 +89,7 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid)
mem_section[root] = section; mem_section[root] = section;
return ret; return 0;
} }
#else /* !SPARSEMEM_EXTREME */ #else /* !SPARSEMEM_EXTREME */
static inline int sparse_index_init(unsigned long section_nr, int nid) static inline int sparse_index_init(unsigned long section_nr, int nid)
......
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