aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/dfs_pattern_detector.c
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2021-10-05 16:55:54 +0300
committerKalle Valo <kvalo@codeaurora.org>2021-10-05 17:29:20 +0300
commit7210b4b77fe47697890d2d3b2ce57ac9f767bffc (patch)
tree44afaca21fa6f3278b774de157ef49369093c3a2 /drivers/net/wireless/ath/dfs_pattern_detector.c
parent57bb2398bd5fb202cd9688a13c685992737d4c16 (diff)
downloadlinux-7210b4b77fe47697890d2d3b2ce57ac9f767bffc.tar.gz
linux-7210b4b77fe47697890d2d3b2ce57ac9f767bffc.tar.bz2
linux-7210b4b77fe47697890d2d3b2ce57ac9f767bffc.zip
ath11k: Remove unused variable in ath11k_dp_rx_mon_merg_msdus()
Coverity complains that a constant variable guards dead code. In fact, mpdu_buf is set NULL and never updated. 4834err_merge_fail: null: At condition mpdu_buf, the value of mpdu_buf must be NULL. dead_error_condition: The condition mpdu_buf cannot be true. CID 92162 (#1 of 1): 'Constant' variable guards dead code (DEADCODE) dead_error_line: Execution cannot reach the expression decap_format != DP_RX_DECAP_TYPE_RAW inside this statement: if (mpdu_buf && decap_forma.... Local variable mpdu_buf is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make mpdu_buf not remain constant. 4835 if (mpdu_buf && decap_format != DP_RX_DECAP_TYPE_RAW) { Fix this by removing mpdu_buf and unreachable code. Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210927150743.19816-1-tim.gardner@canonical.com
Diffstat (limited to 'drivers/net/wireless/ath/dfs_pattern_detector.c')
0 files changed, 0 insertions, 0 deletions