diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-05-23 17:20:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-05-23 17:20:58 -0400 |
| commit | 9528454f9c02fb9c359c4c42c69eed4d47407e39 (patch) | |
| tree | 40e8c7f829b528073d2b216c3b8e6be205c76245 /mm/sparse.c | |
| parent | 777e1d4a0f3387933f668e7adc81384827975189 (diff) | |
| parent | 1faadface9c5d000bb16e42c89f24859337cf2db (diff) | |
Merge branch 'master' into upstream
Diffstat (limited to 'mm/sparse.c')
| -rw-r--r-- | mm/sparse.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index c5e89eb9ac8f..100040c0dfb6 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
| @@ -87,11 +87,8 @@ int __section_nr(struct mem_section* ms) | |||
| 87 | unsigned long root_nr; | 87 | unsigned long root_nr; |
| 88 | struct mem_section* root; | 88 | struct mem_section* root; |
| 89 | 89 | ||
| 90 | for (root_nr = 0; | 90 | for (root_nr = 0; root_nr < NR_SECTION_ROOTS; root_nr++) { |
| 91 | root_nr < NR_MEM_SECTIONS; | 91 | root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); |
| 92 | root_nr += SECTIONS_PER_ROOT) { | ||
| 93 | root = __nr_to_section(root_nr); | ||
| 94 | |||
| 95 | if (!root) | 92 | if (!root) |
| 96 | continue; | 93 | continue; |
| 97 | 94 | ||
