aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-02-22 17:00:32 -0500
committerThomas Gleixner <tglx@linutronix.de>2009-03-13 09:32:29 -0400
commit4553573277906901f62f73c0432b332c53de5e2c (patch)
tree4093af83302fa711e9079152089085927f60c838 /kernel
parentbedd30d986a05e32dc3eab874e4b9ed8a38058bb (diff)
genirq: use kzalloc instead of explicit zero initialization
Impact: simplification Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/manage.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 4600f877c292..8a22039a90ba 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -737,15 +737,13 @@ int request_irq(unsigned int irq, irq_handler_t handler,
737 if (!handler) 737 if (!handler)
738 return -EINVAL; 738 return -EINVAL;
739 739
740 action = kmalloc(sizeof(struct irqaction), GFP_KERNEL); 740 action = kzalloc(sizeof(struct irqaction), GFP_KERNEL);
741 if (!action) 741 if (!action)
742 return -ENOMEM; 742 return -ENOMEM;
743 743
744 action->handler = handler; 744 action->handler = handler;
745 action->flags = irqflags; 745 action->flags = irqflags;
746 cpus_clear(action->mask);
747 action->name = devname; 746 action->name = devname;
748 action->next = NULL;
749 action->dev_id = dev_id; 747 action->dev_id = dev_id;
750 748
751 retval = __setup_irq(irq, desc, action); 749 retval = __setup_irq(irq, desc, action);