From: Cyrill Gorcunov Date: Mon, 24 Aug 2009 17:53:39 +0000 (+0400) Subject: x86, ioapic: Get rid of needless check and simplify ioapic_setup_resources() X-Git-Tag: v2.6.32-rc1~715^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc438366c2660a6a811b94ba33229bf217f8254;p=pandora-kernel.git x86, ioapic: Get rid of needless check and simplify ioapic_setup_resources() alloc_bootmem() already panics on allocation failure. There is no need to check the result. Also there is a way to unbind global variable from its body and use it as a parameter which allow us to simplify ioapic_init_mappings as well -- "for" cycle already uses nr_ioapics as a conditional variable and there is no need to check if ioapic_setup_resources was returning NULL again. Signed-off-by: Cyrill Gorcunov Cc: Yinghai Lu LKML-Reference: <20090824175551.493629148@openvz.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed