diff options
| author | Jacob Keller <jacob.e.keller@intel.com> | 2023-03-07 15:02:12 -0800 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2023-03-13 15:44:29 +0200 |
| commit | 84e9e2102bdc4f60ce131dcb74046219dc4425ae (patch) | |
| tree | 1a9cb7abad3e1b7f55577d4a3a7170e9bc665626 /lib/mpi/mpi-sub-ui.c | |
| 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 <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 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
