From 2dd9777c7e11d2507841838e958bbf839bdb9917 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 20 Mar 2016 09:58:07 -0600 Subject: [PATCH] Fix a backward conditional test introduced with the last commit --- net/tcp/tcp_devpoll.c | 4 ++-- net/tcp/tcp_timer.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/tcp/tcp_devpoll.c b/net/tcp/tcp_devpoll.c index daa85e062a..6fce807934 100644 --- a/net/tcp/tcp_devpoll.c +++ b/net/tcp/tcp_devpoll.c @@ -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 * * 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 diff --git a/net/tcp/tcp_timer.c b/net/tcp/tcp_timer.c index f14e9b9d68..0ba497bb2a 100644 --- a/net/tcp/tcp_timer.c +++ b/net/tcp/tcp_timer.c @@ -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 * * Adapted for NuttX from logic in uIP which also has a BSD-like license: