diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-02-22 23:00:32 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-03-13 14:32:29 +0100 |
commit | 4553573277906901f62f73c0432b332c53de5e2c (patch) | |
tree | 4093af83302fa711e9079152089085927f60c838 /kernel/irq/manage.c | |
parent | bedd30d986a05e32dc3eab874e4b9ed8a38058bb (diff) | |
download | kernel_samsung_tuna-4553573277906901f62f73c0432b332c53de5e2c.zip kernel_samsung_tuna-4553573277906901f62f73c0432b332c53de5e2c.tar.gz kernel_samsung_tuna-4553573277906901f62f73c0432b332c53de5e2c.tar.bz2 |
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/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 4600f87..8a22039 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, if (!handler) return -EINVAL; - action = kmalloc(sizeof(struct irqaction), GFP_KERNEL); + action = kzalloc(sizeof(struct irqaction), GFP_KERNEL); if (!action) return -ENOMEM; action->handler = handler; action->flags = irqflags; - cpus_clear(action->mask); action->name = devname; - action->next = NULL; action->dev_id = dev_id; retval = __setup_irq(irq, desc, action); |