summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2020-06-29 17:27:45 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2020-07-01 16:33:29 -0700
commitb3c3890489f6d3794916958d1663ab6aecb0290b (patch)
treefa3ed1c45732830e770e60631586c0a32082b722 /drivers/block
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 <bruce.w.allan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions