mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
lwip_poll_dec_sockets_used: remove unused SYS_ARCH_DECL_PROTECT(lev);
This commit is contained in:
parent
8d04f3d622
commit
cf07fddf96
@ -2230,13 +2230,11 @@ static void
|
||||
lwip_poll_dec_sockets_used(struct pollfd *fds, nfds_t nfds)
|
||||
{
|
||||
nfds_t fdi;
|
||||
struct lwip_sock *sock;
|
||||
SYS_ARCH_DECL_PROTECT(lev);
|
||||
|
||||
if(fds) {
|
||||
/* Go through each struct pollfd in the array. */
|
||||
for (fdi = 0; fdi < nfds; fdi++) {
|
||||
sock = tryget_socket_unconn_nouse(fds[fdi].fd);
|
||||
struct lwip_sock *sock = tryget_socket_unconn_nouse(fds[fdi].fd);
|
||||
LWIP_ASSERT("socket gone at the end of select", sock != NULL);
|
||||
if (sock != NULL) {
|
||||
done_socket(sock);
|
||||
|
Loading…
Reference in New Issue
Block a user