net/tcp/tcp_netpoll.c: 'if' should have been 'else if'

This commit is contained in:
Gregory Nutt 2018-09-12 15:14:24 -06:00
parent d533cc53df
commit 11d181d3d3

View File

@ -215,8 +215,8 @@ static inline void tcp_iob_work(FAR void *arg)
* event. If so, don't do it again and don't setup notification again.
*/
if ((fds->events && POLLWRNORM) == 0 ||
(fds->revents && POLLWRNORM) != 0)
else if ((fds->events && POLLWRNORM) == 0 ||
(fds->revents && POLLWRNORM) != 0)
{
/* Check if we are now able to send */