From a47a0d237cfe2acf9baed7db9e317c0fc9247974 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 31 May 2015 10:29:53 -0600 Subject: [PATCH] Costmetic changes to networking logic --- net/devif/devif_callback.c | 3 ++- net/socket/recvfrom.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/devif/devif_callback.c b/net/devif/devif_callback.c index 3bd1f13a0a2..2c35a2279ad 100644 --- a/net/devif/devif_callback.c +++ b/net/devif/devif_callback.c @@ -257,7 +257,8 @@ void devif_callback_free(FAR struct net_driver_s *dev, /* Put the structure into the free list */ - cb->nxtconn = g_cbfreelist; + cb->nxtconn = g_cbfreelist; + cb->nxtdev = NULL; g_cbfreelist = cb; net_unlock(save); } diff --git a/net/socket/recvfrom.c b/net/socket/recvfrom.c index fa08778fe1b..dc4c5edba70 100644 --- a/net/socket/recvfrom.c +++ b/net/socket/recvfrom.c @@ -895,7 +895,7 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev, /* Wake up the waiting thread, returning either the error -EAGAIN * that signals the timeout event or the data received up to - * the point tht the timeout occured (no error). + * the point that the timeout occurred (no error). */ sem_post(&pstate->rf_sem);