Commit-ID: 4553573277906901f62f73c0432b332c53de5e2c Gitweb: http://git.kernel.org/tip/4553573277906901f62f73c0432b332c53de5e2c Author: Thomas Gleixner <tglx@xxxxxxxxxxxxx> AuthorDate: Sun, 22 Feb 2009 23:00:32 +0100 Commit: Thomas Gleixner <tglx@xxxxxxxxxxxxx> CommitDate: Fri, 13 Mar 2009 14:32:29 +0100 genirq: use kzalloc instead of explicit zero initialization Impact: simplification Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Reviewed-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx> --- 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); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html