diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-10-11 04:09:20 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-10-13 13:26:49 -0400 |
commit | e3bfecd5cd37a93c47c146c41d5f1fde7405b592 (patch) | |
tree | 7bb7600b338475b8d943f46dcea5fbd7f03f15e4 /drivers/net/wireless | |
parent | 0738b4998c6d1caf9ca2447b946709a7278c70f1 (diff) |
ath10k: htt: remove some dead code
We added an unnecessary condition here in commit a904417fc876 ("ath10k:
add extended per sta tx statistics support"). "legacy_rate_idx" is a u8
so it can't be negative. The caller doesn't pass negatives either. I
have deleted this code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/htt_rx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index edd0e74b2732..ffec98f7be50 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c | |||
@@ -2680,8 +2680,6 @@ ath10k_accumulate_per_peer_tx_stats(struct ath10k *ar, | |||
2680 | STATS_OP_FMT(RETRY).ht[1][ht_idx] += pstats->retry_pkts; | 2680 | STATS_OP_FMT(RETRY).ht[1][ht_idx] += pstats->retry_pkts; |
2681 | } else { | 2681 | } else { |
2682 | mcs = legacy_rate_idx; | 2682 | mcs = legacy_rate_idx; |
2683 | if (mcs < 0) | ||
2684 | return; | ||
2685 | 2683 | ||
2686 | STATS_OP_FMT(SUCC).legacy[0][mcs] += pstats->succ_bytes; | 2684 | STATS_OP_FMT(SUCC).legacy[0][mcs] += pstats->succ_bytes; |
2687 | STATS_OP_FMT(SUCC).legacy[1][mcs] += pstats->succ_pkts; | 2685 | STATS_OP_FMT(SUCC).legacy[1][mcs] += pstats->succ_pkts; |