genirq: use kzalloc instead of explicit zero initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 22 Feb 2009 22:00:32 +0000 (23:00 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Mar 2009 13:32:29 +0000 (14:32 +0100)
Impact: simplification

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
kernel/irq/manage.c

index 4600f87..8a22039 100644 (file)
@@ -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);