commit | 1260e772dd184b29266b552d90cbf80f6ee4b066 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Wed Jun 17 13:53:17 2020 -0500 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 18 20:36:07 2020 -0700 |
tree | 3e5791b2b80ecbee282b601bf230af6e4a6f0153 | |
parent | 427d5838e99632e9218eae752009c873cade89ac [diff] |
enetc: Use struct_size() helper in 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> Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>