diff options
| author | Martin Kaiser <[email protected]> | 2022-12-30 19:06:45 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-17 19:31:23 +0100 |
| commit | 5877852e9f959483202cb2a7d55e7f5f13b76208 (patch) | |
| tree | ad93f78c3264574780bd57b15d286a03b041df4a /tools/perf/scripts/python/flamegraph.py | |
| parent | 1b757dfdab91ea15d26ab89f01be4eb9ab9067a7 (diff) | |
staging: r8188eu: rtw_init_hwxmits is not needed
The _rtw_init_xmit_priv function calls rtw_alloc_hwxmits to allocate
memory for pxmitpriv->hwxmits (this is an array of struct hw_xmit). This
allocation uses kzalloc, the allocated memory is initialised with 0.
After the allocation, _rtw_init_xmit_priv calls rtw_init_hwxmits to set an
element of each hw_xmit to 0. This is not necessary, we can remove the
rtw_init_hwxmits call and the now unused function rtw_init_hwxmits.
Signed-off-by: Martin Kaiser <[email protected]>
Tested-by: Philipp Hortmann <[email protected]> # Edimax N150
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions