diff --git a/net/icmp/icmp_netpoll.c b/net/icmp/icmp_netpoll.c index 2981891e4d..9ed239f5c3 100644 --- a/net/icmp/icmp_netpoll.c +++ b/net/icmp/icmp_netpoll.c @@ -159,7 +159,7 @@ int icmp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds) FAR struct icmp_conn_s *conn = psock->s_conn; FAR struct icmp_poll_s *info; FAR struct devif_callback_s *cb; - int ret; + int ret = OK; DEBUGASSERT(conn != NULL && fds != NULL);