mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
net/bufpool: fix typo
A previous spelling mistake has been detected. fix it Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
07372c12ec
commit
908596dde3
+4
-4
@@ -552,7 +552,7 @@ FAR struct udp_conn_s *udp_alloc(uint8_t domain)
|
||||
|
||||
/* The free list is protected by a mutex. */
|
||||
|
||||
NET_BUFPOLL_LOCK(g_udp_connections);
|
||||
NET_BUFPOOL_LOCK(g_udp_connections);
|
||||
|
||||
conn = NET_BUFPOOL_TRYALLOC(g_udp_connections);
|
||||
|
||||
@@ -585,7 +585,7 @@ FAR struct udp_conn_s *udp_alloc(uint8_t domain)
|
||||
dq_addlast(&conn->sconn.node, &g_active_udp_connections);
|
||||
}
|
||||
|
||||
NET_BUFPOLL_UNLOCK(g_udp_connections);
|
||||
NET_BUFPOOL_UNLOCK(g_udp_connections);
|
||||
return conn;
|
||||
}
|
||||
|
||||
@@ -608,7 +608,7 @@ void udp_free(FAR struct udp_conn_s *conn)
|
||||
|
||||
DEBUGASSERT(conn->crefs == 0);
|
||||
|
||||
NET_BUFPOLL_LOCK(g_udp_connections);
|
||||
NET_BUFPOOL_LOCK(g_udp_connections);
|
||||
conn->lport = 0;
|
||||
|
||||
/* Remove the connection from the active list */
|
||||
@@ -644,7 +644,7 @@ void udp_free(FAR struct udp_conn_s *conn)
|
||||
|
||||
NET_BUFPOOL_FREE(g_udp_connections, conn);
|
||||
|
||||
NET_BUFPOLL_UNLOCK(g_udp_connections);
|
||||
NET_BUFPOOL_UNLOCK(g_udp_connections);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user