diff options
Diffstat (limited to 'drivers/staging/ath6kl/os/linux/ar6000_raw_if.c')
-rw-r--r-- | drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c b/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c index 22d88d70c76..8a197ff9a36 100644 --- a/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c +++ b/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | |||
@@ -55,7 +55,7 @@ ar6000_htc_raw_read_cb(void *Context, HTC_PACKET *pPacket) | |||
55 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Unable to down the semaphore\n")); | 55 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Unable to down the semaphore\n")); |
56 | } | 56 | } |
57 | 57 | ||
58 | A_ASSERT((pPacket->Status != A_OK) || | 58 | A_ASSERT((pPacket->Status != 0) || |
59 | (pPacket->pBuffer == (busy->data + HTC_HEADER_LEN))); | 59 | (pPacket->pBuffer == (busy->data + HTC_HEADER_LEN))); |
60 | 60 | ||
61 | busy->length = pPacket->ActualLength + HTC_HEADER_LEN; | 61 | busy->length = pPacket->ActualLength + HTC_HEADER_LEN; |
@@ -150,7 +150,7 @@ static int ar6000_connect_raw_service(AR_SOFTC_T *ar, | |||
150 | if (status) { | 150 | if (status) { |
151 | if (response.ConnectRespCode == HTC_SERVICE_NO_MORE_EP) { | 151 | if (response.ConnectRespCode == HTC_SERVICE_NO_MORE_EP) { |
152 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("HTC RAW , No more streams allowed \n")); | 152 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("HTC RAW , No more streams allowed \n")); |
153 | status = A_OK; | 153 | status = 0; |
154 | } | 154 | } |
155 | break; | 155 | break; |
156 | } | 156 | } |
@@ -228,7 +228,7 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar) | |||
228 | arRawStream2EndpointID(ar,streamID)); | 228 | arRawStream2EndpointID(ar,streamID)); |
229 | 229 | ||
230 | /* Queue buffers to HTC for receive */ | 230 | /* Queue buffers to HTC for receive */ |
231 | if ((status = HTCAddReceivePkt(ar->arHtcTarget, &buffer->HTCPacket)) != A_OK) | 231 | if ((status = HTCAddReceivePkt(ar->arHtcTarget, &buffer->HTCPacket)) != 0) |
232 | { | 232 | { |
233 | BMIInit(); | 233 | BMIInit(); |
234 | return -EIO; | 234 | return -EIO; |
@@ -262,7 +262,7 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar) | |||
262 | 1); | 262 | 1); |
263 | 263 | ||
264 | /* Start the HTC component */ | 264 | /* Start the HTC component */ |
265 | if ((status = HTCStart(ar->arHtcTarget)) != A_OK) { | 265 | if ((status = HTCStart(ar->arHtcTarget)) != 0) { |
266 | BMIInit(); | 266 | BMIInit(); |
267 | return -EIO; | 267 | return -EIO; |
268 | } | 268 | } |