net/icmp/icmp_netpoll.c: Fix return of uninitialized 'ret' when no error occurs. That is, on what should be a successful return from this function, an uninitialized value was returned, which may indicate an undeserved error.

This commit is contained in:
Nathan Hartman 2020-01-02 14:40:08 -06:00 committed by Gregory Nutt
parent dfe74fc4cf
commit f9f8c6a79b
1 changed files with 1 additions and 1 deletions

View File

@ -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);