diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2008-12-25 22:29:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-26 03:48:18 -0500 |
commit | 18eefedfe8ad33e8fc7614c13359e29a9fab4644 (patch) | |
tree | e0b7c801c27a3933137e7e4056a3bca3c3244744 /kernel/irq/handle.c | |
parent | 26ddd8d5cac8a563953d5febe8c6e40909f7bce1 (diff) |
irq: simplify for_each_irq_desc() usage
Impact: cleanup
all for_each_irq_desc() usage point have !desc check.
then its check can move into for_each_irq_desc() macro.
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/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 03479dfdebb8..7dbdfe524693 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -437,9 +437,6 @@ void early_init_irq_lock_class(void) | |||
437 | int i; | 437 | int i; |
438 | 438 | ||
439 | for_each_irq_desc(i, desc) { | 439 | for_each_irq_desc(i, desc) { |
440 | if (!desc) | ||
441 | continue; | ||
442 | |||
443 | lockdep_set_class(&desc->lock, &irq_desc_lock_class); | 440 | lockdep_set_class(&desc->lock, &irq_desc_lock_class); |
444 | } | 441 | } |
445 | } | 442 | } |