Skip to content
Snippets Groups Projects
Commit 2dd9777c authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix a backward conditional test introduced with the last commit

parent 00b44959
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
* net/tcp/tcp_devpoll.c
* Driver poll for the availability of TCP TX data
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Adapted for NuttX from logic in uIP which also has a BSD-like license:
......@@ -97,7 +97,7 @@ void tcp_poll(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn)
*/
DEBUGASSERT(conn->dev != NULL);
if (dev != conn->dev)
if (dev == conn->dev)
#endif
{
/* Set up for the callback. We can't know in advance if the
......
......@@ -2,7 +2,7 @@
* net/tcp/tcp_timer.c
* Poll for the availability of TCP TX data
*
* Copyright (C) 2007-2010, 2015 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2010, 2015-2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Adapted for NuttX from logic in uIP which also has a BSD-like license:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment