]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/boot/memory.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
[linux-2.6-omap-h63xx.git] / arch / x86 / boot / memory.c
index e77d89f9e8aa23c13751bee268718e8ed7ee54a7..8c3c25f35578a00c140440131a69ae539038f950 100644 (file)
@@ -9,8 +9,6 @@
  * ----------------------------------------------------------------------- */
 
 /*
- * arch/i386/boot/memory.c
- *
  * Memory detection code
  */
 
@@ -55,7 +53,7 @@ static int detect_memory_e820(void)
 
                count++;
                desc++;
-       } while (next && count < E820MAX);
+       } while (next && count < ARRAY_SIZE(boot_params.e820_map));
 
        return boot_params.e820_entries = count;
 }