Commit 1c630a8d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] bootmem.c cleanups

From: Davide Libenzi <davidel@xmailserver.org>

- Remove a couple of impossible debug checks (unsigneds cannot be
  negative!)

- If __alloc_bootmem_core() fails with a goal and unaligned node_boot_start
  it'll loop fovever.
parent 12c1bf07
......@@ -84,10 +84,6 @@ static void __init reserve_bootmem_core(bootmem_data_t *bdata, unsigned long add
if (!size) BUG();
if (sidx < 0)
BUG();
if (eidx < 0)
BUG();
if (sidx >= eidx)
BUG();
if ((addr >> PAGE_SHIFT) >= bdata->node_low_pfn)
......@@ -202,7 +198,7 @@ __alloc_bootmem_core(struct bootmem_data *bdata, unsigned long size,
;
}
if (preferred) {
if (preferred > offset) {
preferred = offset;
goto restart_scan;
}
......
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