lwip_poll_dec_sockets_used: remove unused SYS_ARCH_DECL_PROTECT(lev);

This commit is contained in:
goldsimon 2017-10-19 06:52:33 +02:00
parent 8d04f3d622
commit cf07fddf96

View File

@ -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);