Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45535732 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

genirq: use kzalloc instead of explicit zero initialization



Impact: simplification

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarPeter Zijlstra <peterz@infradead.org>
parent bedd30d9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);