diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2023-03-08 02:02:12 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-03-13 16:44:29 +0300 |
commit | 84e9e2102bdc4f60ce131dcb74046219dc4425ae (patch) | |
tree | 1a9cb7abad3e1b7f55577d4a3a7170e9bc665626 /tools/perf/scripts/python/libxed.py | |
parent | a23c82e006db2f073fb65da8762f63735a510409 (diff) | |
download | linux-84e9e2102bdc4f60ce131dcb74046219dc4425ae.tar.xz |
wifi: qtnfmac: use struct_size and size_sub for payload length
Replace the calculations for the payload length in
qtnf_cmd_band_fill_iftype with struct_size() and size_sub(). While
the payload length does not get directly passed to an allocation function,
the performed calculation is still calculating the size of a flexible array
structure (minus the size of a header structure).
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Igor Mitsyanko <imitsyanko@quantenna.com>
Cc: Sergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230307230212.3735818-1-jacob.e.keller@intel.com
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions