proc: remove ifdef CONFIG_SPARSE_IRQ from stat.c
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Fri, 26 Dec 2008 05:24:10 +0000 (14:24 +0900)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Dec 2008 08:48:18 +0000 (09:48 +0100)
commit26ddd8d5cac8a563953d5febe8c6e40909f7bce1
tree1e13087c68aeb1fc7da6126a4452869c368e2a93
parentf9af0e70911e9d6cc9a68f784dca86415486084d
proc: remove ifdef CONFIG_SPARSE_IRQ from stat.c

Impact: cleanup

irq_desc can be NULL when CONFIG_SPARSE_IRQ=y only.
therefore, NULL checking can move into kstat_irqs_cpu() of SPARSE_IRQ version.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: "Yinghai Lu" <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/stat.c
kernel/irq/handle.c