Skip to content
Commit 2f7a9bda authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Marc Zyngier
Browse files

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: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200616230923.GA24937@embeddedor
parent 6eeb997a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment