aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/mac.c
diff options
context:
space:
mode:
authorNicholas Mc Guire <der.herr@hofr.at>2015-01-08 13:27:34 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2015-01-13 16:19:59 +0200
commit38e2a644174e74f948ec4415ae5b5c76f1412b0e (patch)
tree250fa81bc6fd1c503b2c5aafddc527fe163a11fd /drivers/net/wireless/ath/ath10k/mac.c
parentath10k: fill max_num_vdevs for wmi-tlv (diff)
downloadlinux-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.c2
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);