diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-07-21 09:40:19 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-08-04 12:08:52 +0300 |
commit | 16b31ecb802946f1855259a2006c32c8d340ea5c (patch) | |
tree | ddb1658491eb0877eae277653721a783b21d2293 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9588469d06977bc8ff2c131c4eb589c6477c3b7c (diff) |
wifi: brcmfmac: fwsignal: Use struct_size() to simplify brcmf_fws_rxreorder()
In the "struct brcmf_ampdu_rx_reorder", change the 'pktslots' field into
flexible array.
It saves the size of a pointer when the memory is allocated and avoids
an indirection when the array is used.
It also removes the usage of a pointer arithmetic and saves a few lines of
code.
Finally, struct_size() can be used. It is not a must have here, because
it is easy to see that buf_size can not overflow, but still, it is a good
practice.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/f4ca6b887ca1290c71e76247218adea4d1c42442.1721547559.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions