]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: htt: remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2018 08:09:20 +0000 (11:09 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:26:49 +0000 (20:26 +0300)
commit17a3e48bc47aaa00b5336b574c67d5261a0bee06
tree7bb7600b338475b8d943f46dcea5fbd7f03f15e4
parent26982e14334b36ae2aae445dd8950655c3c9bffb
ath10k: htt: remove some dead code

We added an unnecessary condition here in commit 487b878c3280 ("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>
drivers/net/wireless/ath/ath10k/htt_rx.c