From: Jeremy Fitzhardinge Date: Mon, 8 Jun 2009 10:24:11 +0000 (-0700) Subject: x86/ioapic.c: simplify add_pin_to_irq_node() X-Git-Tag: v2.6.32-rc1~715^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875e68ec32fc5495f3edf987aaae1c52306184b7;p=pandora-kernel.git x86/ioapic.c: simplify add_pin_to_irq_node() Rather than duplicating the same alloc/init code twice, restructure the function to look for duplicates and then add an entry if none is found. This function is not performance critical; all but one of its callers are __init functions, and the non-__init caller is for PCI device setup. Signed-off-by: Jeremy Fitzhardinge --- Reading git-diff-tree failed