diff options
author | Len Baker <len.baker@gmx.com> | 2021-07-31 18:35:46 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-08-21 22:19:52 +0300 |
commit | d816ce8744db76bed755596a3ae7a49dec64f8c0 (patch) | |
tree | 9b1026632058fe57d719ee33477962d56b09b978 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 69c7044526d984df672b8d9b6d6998c34617cde4 (diff) |
rtw88: Remove unnecessary check code
The rtw_pci_init_rx_ring function is only ever called with a fixed
constant or RTK_MAX_RX_DESC_NUM for the "len" argument. Since this
constant is defined as 512, the "if (len > TRX_BD_IDX_MASK)" check
can never happen (TRX_BD_IDX_MASK is defined as GENMASK(11, 0) or in
other words as 4095).
So, remove this check.
The true motivation for this patch is to silence a false Coverity
warning.
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Len Baker <len.baker@gmx.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210731163546.10753-1-len.baker@gmx.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions