aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2008-12-26 00:24:10 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-26 03:48:18 -0500
commit26ddd8d5cac8a563953d5febe8c6e40909f7bce1 (patch)
tree1e13087c68aeb1fc7da6126a4452869c368e2a93 /kernel/irq
parentf9af0e70911e9d6cc9a68f784dca86415486084d (diff)
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>
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 4db7d2df86b6..03479dfdebb8 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -448,7 +448,7 @@ void early_init_irq_lock_class(void)
448unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) 448unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
449{ 449{
450 struct irq_desc *desc = irq_to_desc(irq); 450 struct irq_desc *desc = irq_to_desc(irq);
451 return desc->kstat_irqs[cpu]; 451 return desc ? desc->kstat_irqs[cpu] : 0;
452} 452}
453#endif 453#endif
454EXPORT_SYMBOL(kstat_irqs_cpu); 454EXPORT_SYMBOL(kstat_irqs_cpu);