Skip to content

Commit 0843da1

Browse files
committed
drivers: wifi: eswifi: Return 0 in poll if read times out.
1 parent 679ad39 commit 0843da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wifi/eswifi/eswifi_socket_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static int eswifi_socket_poll(struct zsock_pollfd *fds, int nfds, int msecs)
533533
ret = k_sem_take(&socket->read_sem, timeout);
534534
if (ret) {
535535
errno = ETIMEDOUT;
536-
return -1;
536+
return 0;
537537
}
538538

539539
done:

0 commit comments

Comments
 (0)