diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-03-26 19:55:34 -0700 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2026-03-30 08:46:25 -0500 |
| commit | 908061f0ad30aa08ce211c6a8f95d29102e570bd (patch) | |
| tree | 1cf55de4a4e851c4dca33758bdf382ceae3ed3bf /drivers/staging/bcm/git@git.tavy.me:linux.git | |
| parent | 79c9ede455820e179608f9d52584c74d19e13fb0 (diff) | |
soc: qcom: wcnss: simplify allocation of req
Get rid of automatic kfree and move allocation down to where it's used.
Use kzalloc_flex as we're dealing with a flexible array member.
Use struct_size to avoid some pointer math.
Add __counted_by for extra runtime analysis. Move the counting variable
assignment to right after allocation as required by __counted_by.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/r/20260327025534.7864-1-rosenp@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/staging/bcm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
