From: Thomas Gleixner Date: Sun, 22 Feb 2009 22:00:32 +0000 (+0100) Subject: genirq: use kzalloc instead of explicit zero initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4553573277906901f62f73c0432b332c53de5e2c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git genirq: use kzalloc instead of explicit zero initialization Impact: simplification Signed-off-by: Thomas Gleixner Reviewed-by: Peter Zijlstra --- 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, 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);