diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/htc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index f1946a6be442..2fd9e180272b 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c | |||
@@ -703,11 +703,9 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc, | |||
703 | /* wait for response */ | 703 | /* wait for response */ |
704 | status = wait_for_completion_timeout(&htc->ctl_resp, | 704 | status = wait_for_completion_timeout(&htc->ctl_resp, |
705 | ATH10K_HTC_CONN_SVC_TIMEOUT_HZ); | 705 | ATH10K_HTC_CONN_SVC_TIMEOUT_HZ); |
706 | if (status <= 0) { | 706 | if (status == 0) { |
707 | if (status == 0) | ||
708 | status = -ETIMEDOUT; | ||
709 | ath10k_err(ar, "Service connect timeout: %d\n", status); | 707 | ath10k_err(ar, "Service connect timeout: %d\n", status); |
710 | return status; | 708 | return -ETIMEDOUT; |
711 | } | 709 | } |
712 | 710 | ||
713 | /* we controlled the buffer creation, it's aligned */ | 711 | /* we controlled the buffer creation, it's aligned */ |