kni: move trailing statement on next line
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Sep 2016 15:39:27 +0000 (16:39 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 21:07:16 +0000 (23:07 +0200)
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_vhost.c

index ec39538..bef4889 100644 (file)
@@ -244,11 +244,12 @@ kni_sock_poll(struct file *file, struct socket *sock, poll_table *wait)
 
        if (sock_writeable(&q->sk) ||
 #ifdef SOCKWQ_ASYNC_NOSPACE
-           (!test_and_set_bit(SOCKWQ_ASYNC_NOSPACE, &q->sock->flags) &&
+               (!test_and_set_bit(SOCKWQ_ASYNC_NOSPACE, &q->sock->flags) &&
+                       sock_writeable(&q->sk)))
 #else
-           (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock->flags) &&
+               (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock->flags) &&
+                       sock_writeable(&q->sk)))
 #endif
-            sock_writeable(&q->sk)))
                mask |= POLLOUT | POLLWRNORM;
 
        return mask;