Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8642bd9e authored by Allan Stephens's avatar Allan Stephens Committed by David S. Miller
Browse files

tipc: Optimize pointer dereferencing when receiving stream data



This patch eliminates an unnecessary pointer dereference when
accessing a stream-based socket's receive queue.

Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ea52241
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1133,7 +1133,7 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock,
	/* Loop around if more data is required */

	if ((sz_copied < buf_len)    /* didn't get all requested data */
	    && (!skb_queue_empty(&sock->sk->sk_receive_queue) ||
	    && (!skb_queue_empty(&sk->sk_receive_queue) ||
		(flags & MSG_WAITALL))
				     /* ... and more is ready or required */
	    && (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */