Commit 1c73fac5 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Marc Zyngier

irqchip/gic-v3-its: Drop redundant initialization in mk_lpi_range

There's no reason to ask kmalloc() to zero the allocation, since all
the fields get initialized immediately afterwards. Except that there's
also not any reason to initialize the ->entry member, since the
element gets added to the lpi_range_list immediately.
Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent b31a3838
...@@ -1465,9 +1465,8 @@ static struct lpi_range *mk_lpi_range(u32 base, u32 span) ...@@ -1465,9 +1465,8 @@ static struct lpi_range *mk_lpi_range(u32 base, u32 span)
{ {
struct lpi_range *range; struct lpi_range *range;
range = kzalloc(sizeof(*range), GFP_KERNEL); range = kmalloc(sizeof(*range), GFP_KERNEL);
if (range) { if (range) {
INIT_LIST_HEAD(&range->entry);
range->base_id = base; range->base_id = base;
range->span = span; range->span = span;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment