diff options
author | Gustavo A. R. Silva <[email protected]> | 2020-06-17 13:53:17 -0500 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-06-18 20:36:07 -0700 |
commit | 1260e772dd184b29266b552d90cbf80f6ee4b066 (patch) | |
tree | 3e5791b2b80ecbee282b601bf230af6e4a6f0153 /tools/perf/scripts/python/stat-cpi.py | |
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 <[email protected]>
Reviewed-by: Claudiu Manoil <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions