aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/sparse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/sparse.c b/mm/sparse.c
index 1c91f0d3f6ab..9ac2f743f723 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -79,7 +79,6 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid)
79{ 79{
80 unsigned long root = SECTION_NR_TO_ROOT(section_nr); 80 unsigned long root = SECTION_NR_TO_ROOT(section_nr);
81 struct mem_section *section; 81 struct mem_section *section;
82 int ret = 0;
83 82
84 if (mem_section[root]) 83 if (mem_section[root])
85 return -EEXIST; 84 return -EEXIST;
@@ -90,7 +89,7 @@ static int __meminit sparse_index_init(unsigned long section_nr, int nid)
90 89
91 mem_section[root] = section; 90 mem_section[root] = section;
92 91
93 return ret; 92 return 0;
94} 93}
95#else /* !SPARSEMEM_EXTREME */ 94#else /* !SPARSEMEM_EXTREME */
96static inline int sparse_index_init(unsigned long section_nr, int nid) 95static inline int sparse_index_init(unsigned long section_nr, int nid)