Skip to content

Commit 0af9d1a

Browse files
committed
Fix error handling
Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 78ec228 commit 0af9d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nrf_wifi/bus/ipc_if.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int ipc_send(ipc_ctx_t ctx, const void *data, int len) {
6767
} while (ret == WIFI_IPC_STATUS_BUSYQ_NOTREADY);
6868

6969
/* Critical error during IPC service transfer. Should never happen. */
70-
if (ret == WIFI_IPC_STATUS_BUSYQ_CRITICAL_ERR) {
70+
if (ret) {
7171
return -1;
7272
}
7373
break;
@@ -78,7 +78,7 @@ int ipc_send(ipc_ctx_t ctx, const void *data, int len) {
7878
} while (ret == WIFI_IPC_STATUS_BUSYQ_NOTREADY);
7979

8080
/* Critical error during IPC service transfer. Should never happen. */
81-
if (ret == WIFI_IPC_STATUS_BUSYQ_CRITICAL_ERR) {
81+
if (ret) {
8282
return -1;
8383
}
8484
case IPC_INSTANCE_RX:

0 commit comments

Comments
 (0)