irqchip/imx-intmux: Use struct_size() helper in devm_kzalloc()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 16 Jun 2020 23:09:23 +0000 (18:09 -0500)
committerMarc Zyngier <maz@kernel.org>
Sat, 27 Jun 2020 10:55:29 +0000 (11:55 +0100)
commit2f7a9bda42f74e1169fcd9ef55c8ade989ef8bba
tree2a90ba2cea9b528d227e76c21790ec8b9b80eb47
parent6eeb997ab5075e770a002c51351fa4ec2c6b5c39
irqchip/imx-intmux: Use struct_size() helper in devm_kzalloc()

Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.

This code was detected with the help of Coccinelle and, audited and
fixed manually.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200616230923.GA24937@embeddedor
drivers/irqchip/irq-imx-intmux.c