diff options
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 73dc2fcc0eab..3570ff294ab1 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -190,15 +190,13 @@ static inline int next_present_section_nr(int section_nr) | |||
190 | section_nr++; | 190 | section_nr++; |
191 | if (present_section_nr(section_nr)) | 191 | if (present_section_nr(section_nr)) |
192 | return section_nr; | 192 | return section_nr; |
193 | } while ((section_nr < NR_MEM_SECTIONS) && | 193 | } while ((section_nr <= __highest_present_section_nr)); |
194 | (section_nr <= __highest_present_section_nr)); | ||
195 | 194 | ||
196 | return -1; | 195 | return -1; |
197 | } | 196 | } |
198 | #define for_each_present_section_nr(start, section_nr) \ | 197 | #define for_each_present_section_nr(start, section_nr) \ |
199 | for (section_nr = next_present_section_nr(start-1); \ | 198 | for (section_nr = next_present_section_nr(start-1); \ |
200 | ((section_nr >= 0) && \ | 199 | ((section_nr >= 0) && \ |
201 | (section_nr < NR_MEM_SECTIONS) && \ | ||
202 | (section_nr <= __highest_present_section_nr)); \ | 200 | (section_nr <= __highest_present_section_nr)); \ |
203 | section_nr = next_present_section_nr(section_nr)) | 201 | section_nr = next_present_section_nr(section_nr)) |
204 | 202 | ||