diff options
| author | Jacob Keller <[email protected]> | 2023-03-07 15:02:12 -0800 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-03-13 15:44:29 +0200 |
| commit | 84e9e2102bdc4f60ce131dcb74046219dc4425ae (patch) | |
| tree | 1a9cb7abad3e1b7f55577d4a3a7170e9bc665626 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | a23c82e006db2f073fb65da8762f63735a510409 (diff) | |
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 <[email protected]>
Cc: Igor Mitsyanko <[email protected]>
Cc: Sergey Matyukevich <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions