BUG_ON cleanups in arch/i386
[sfrench/cifs-2.6.git] / arch / i386 / mm / discontig.c
index 51e3739dd22700f13a28a0627163fcc6bfb94bb0..455597db84dffe2d078db1011d21653a8568650c 100644 (file)
@@ -153,8 +153,7 @@ static void __init find_max_pfn_node(int nid)
         */
        if (node_start_pfn[nid] > max_pfn)
                node_start_pfn[nid] = max_pfn;
-       if (node_start_pfn[nid] > node_end_pfn[nid])
-               BUG();
+       BUG_ON(node_start_pfn[nid] > node_end_pfn[nid]);
 }
 
 /*