diff options
| author | Michael Straube <[email protected]> | 2022-02-22 09:28:46 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-02-25 10:06:49 +0100 |
| commit | b052de6526383a7199079ae68afd92f9187c0862 (patch) | |
| tree | f41dc33096d75b67ffa1010a755be79f13994eec /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6f29d72d2b7ae4caba2d9e578424ed32ba66ec3e (diff) | |
staging: r8188eu: refactor rtw_ch2freq()
Convert the array ch_freq_map to a simple integer array and use
the indices as channel numbers. This simplifies the code and avoids
looping through the array to get the frequency. To avoid out of
bounds array access return a default value for invalid channel values,
like the original code did.
Signed-off-by: Michael Straube <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions