diff options
author | 2015-01-08 13:27:34 +0100 | |
---|---|---|
committer | 2015-01-13 16:19:59 +0200 | |
commit | 38e2a644174e74f948ec4415ae5b5c76f1412b0e (patch) | |
tree | 250fa81bc6fd1c503b2c5aafddc527fe163a11fd /drivers/net/wireless/ath/ath10k/mac.c | |
parent | ath10k: fill max_num_vdevs for wmi-tlv (diff) | |
download | linux-dev-38e2a644174e74f948ec4415ae5b5c76f1412b0e.tar.xz linux-dev-38e2a644174e74f948ec4415ae5b5c76f1412b0e.zip |
ath10k: fixup wait_for_completion_timeout return handling
wait_for_completion_timeout does not return negative values so the tests
for <= 0 are not needed and the case differentiation in the error handling
path unnecessary.
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index c7febfc9c68f..b403cba0afc1 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -2228,7 +2228,7 @@ void ath10k_offchan_tx_work(struct work_struct *work) ret = wait_for_completion_timeout(&ar->offchan_tx_completed, 3 * HZ); - if (ret <= 0) + if (ret == 0) ath10k_warn(ar, "timed out waiting for offchannel skb %p\n", skb); |