summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSerhat Kumral <serhatkumral1@gmail.com>2026-06-22 19:09:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-07 13:26:27 +0200
commitf35a327e90a44ab005d9592b81a1e94f07999da7 (patch)
tree1507ecb31148c754f7c515cb33113cd05b2eb282 /tools/perf/scripts/python/task-analyzer.py
parentf1bd1bc61dce5cf7b1ab994d7ec93b2e41c1c96e (diff)
staging: rtl8723bs: simplify rtw_spt_band_alloc
The function only supports NL80211_BAND_2GHZ and falls through to exit for any other band. Replace the n_channels and n_bitrates local variables with the compile-time constants RTW_2G_CHANNELS_NUM and RTW_G_RATES_NUM directly. Use simple addition in kzalloc() instead of chained size_add() calls, since the sizes are derived from compile-time constants and cannot overflow. Replace the intermediate alloc_sz variable accordingly. Remove the redundant second band check before the init calls, as the early exit at the top of the function guarantees that only the 2GHz case can reach that point. No functional change intended. Suggested-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Serhat Kumral <serhatkumral1@gmail.com> Reviewed-by: Dan Carpenter <error27@gmail.com> Link: https://patch.msgid.link/20260622160947.7970-1-serhatkumral1@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions