diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-19 20:14:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-22 15:43:16 -0700 |
commit | c05d042fda889f1e591b9d306482d9c16072dd60 (patch) | |
tree | 879c23cadb62bd3a4b6cf5a5d41fabb3eba92ee2 /tools/perf/scripts/python/stat-cpi.py | |
parent | dd0d718152e4c65b173070d48ea9dfc06894c3e5 (diff) |
sparc64: viohs: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes. Also, remove unnecessary
variable _len_.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions