From: KyongHo Cho Date: Thu, 13 Jan 2011 23:47:24 +0000 (-0800) Subject: mm/page_alloc.c: simplify calculation of combined index of adjacent buddy lists X-Git-Tag: v2.6.38-rc1~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43506fad21ca3d8dc59e768ff458f7c5e5c01086;p=pandora-kernel.git mm/page_alloc.c: simplify calculation of combined index of adjacent buddy lists The previous approach of calucation of combined index was page_idx & ~(1 << order)) but we have same result with page_idx & buddy_idx This reduces instructions slightly as well as enhances readability. [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: fix used-unintialised warning] Signed-off-by: KyongHo Cho Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed