Field `d_sndlen' is unsigned. It is always >= 0.

Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
Anton D. Kachalov 2015-08-26 00:16:52 +03:00
parent 8d57be2b6f
commit b125c36849

View File

@ -172,7 +172,7 @@ void tcp_appsend(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
else
{
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
DEBUGASSERT(dev->d_sndlen >= 0 && dev->d_sndlen <= conn->mss);
DEBUGASSERT(dev->d_sndlen <= conn->mss);
#else
/* If d_sndlen > 0, the application has data to be sent. */