aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorBruce Allan <[email protected]>2020-06-29 17:27:45 -0700
committerTony Nguyen <[email protected]>2020-07-01 16:33:29 -0700
commitb3c3890489f6d3794916958d1663ab6aecb0290b (patch)
treefa3ed1c45732830e770e60631586c0a32082b722 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent8d7aab3515fa1f9774939537419fecf5247689a9 (diff)
ice: avoid unnecessary single-member variable-length structs
There are a number of structures that consist of a one-element array as the only struct member. Some of those are unused so remove them. Others are used to index into a buffer/array consisting of a variable number of a different data or structure type. Those are unnecessary since we can use simple pointer arithmetic or index directly into the buffer to access individual elements of the buffer/array. Additional code cleanups were done near areas affected by this change. Signed-off-by: Bruce Allan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions