net/inet/inet_close.c: Fix a warning found in build testing.

This commit is contained in:
Gregory Nutt 2019-09-28 12:57:26 -06:00
parent 389ac36f20
commit 93452d70ef
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ static uint16_t tcp_close_eventhandler(FAR struct net_driver_s *dev,
flags = (flags & ~TCP_NEWDATA) | TCP_CLOSE;
}
UNUSED(conn); /* May not be used */
return flags;
end_wait:
@ -194,6 +195,7 @@ end_wait:
nxsem_post(&pstate->cl_sem);
ninfo("Resuming\n");
UNUSED(conn); /* May not be used */
return 0;
}
#endif /* NET_TCP_HAVE_STACK */