|
@@ -703,11 +703,9 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
|
|
/* wait for response */
|
|
/* wait for response */
|
|
status = wait_for_completion_timeout(&htc->ctl_resp,
|
|
status = wait_for_completion_timeout(&htc->ctl_resp,
|
|
ATH10K_HTC_CONN_SVC_TIMEOUT_HZ);
|
|
ATH10K_HTC_CONN_SVC_TIMEOUT_HZ);
|
|
- if (status <= 0) {
|
|
|
|
- if (status == 0)
|
|
|
|
- status = -ETIMEDOUT;
|
|
|
|
|
|
+ if (status == 0) {
|
|
ath10k_err(ar, "Service connect timeout: %d\n", status);
|
|
ath10k_err(ar, "Service connect timeout: %d\n", status);
|
|
- return status;
|
|
|
|
|
|
+ return -ETIMEDOUT;
|
|
}
|
|
}
|
|
|
|
|
|
/* we controlled the buffer creation, it's aligned */
|
|
/* we controlled the buffer creation, it's aligned */
|