Skip to content

Commit

Permalink
net/icmp/icmp_netpoll.c: Fix return of uninitialized 'ret' when no er…
Browse files Browse the repository at this point in the history
…ror occurs. That is, on what should be a successful return from this function, an uninitialized value was returned, which may indicate an undeserved error.
  • Loading branch information
hartmannathan authored and gregory-nutt committed Jan 2, 2020
1 parent dfe74fc commit f9f8c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/icmp/icmp_netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f9f8c6a

Please sign in to comment.