diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-17 21:53:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 06:36:07 +0300 |
commit | 1260e772dd184b29266b552d90cbf80f6ee4b066 (patch) | |
tree | 3e5791b2b80ecbee282b601bf230af6e4a6f0153 /tools/perf/scripts/python | |
parent | 427d5838e99632e9218eae752009c873cade89ac (diff) | |
download | linux-1260e772dd184b29266b552d90cbf80f6ee4b066.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions