mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
Costmetic changes to networking logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user