aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-07-31 18:35:46 +0200
committerKalle Valo <kvalo@codeaurora.org>2021-08-21 22:19:52 +0300
commitd816ce8744db76bed755596a3ae7a49dec64f8c0 (patch)
tree9b1026632058fe57d719ee33477962d56b09b978 /tools/perf/scripts/python/export-to-sqlite.py
parent69c7044526d984df672b8d9b6d6998c34617cde4 (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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions