]> git.itanic.dy.fi Git - linux-stable/commit
carl9170: remove dead branch in op_conf_tx callback
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 15 Jun 2019 10:00:08 +0000 (12:00 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:47:39 +0000 (20:47 +0300)
commit4ba641262b91e4b360564b646ad0ff2166b07ade
tree32e164118e5026c72b709867c93f0da2d3ea9bfd
parentfeb09b2933275a70917a869989ea2823e7356be8
carl9170: remove dead branch in op_conf_tx callback

This patch removes the error branch for (queue > ar->hw->queues).
It is no longer needed anymore as the "queue" value is validated by
cfg80211's parse_txq_params() before the driver code gets called.

Some background:
In the old days (linux 2.6 and early 3.x), the parse_txq_params()
function did not verify the "queue" value. That's why these drivers
had to do it.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/carl9170/main.c