aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-07-15 01:42:51 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-15 01:42:51 -0400
commit8642bd9e04f51980b2b6293c66acf7e388c9a6e7 (patch)
treee83e2cf0467dfb5a8061204f5aa679d3edcd9855 /net/tipc
parent0ea522416b658dedfc9d565b331624a55a6260ad (diff)
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: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 9c362c5759ba..ddcb2a753aa6 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1133,7 +1133,7 @@ restart:
1133 /* Loop around if more data is required */ 1133 /* Loop around if more data is required */
1134 1134
1135 if ((sz_copied < buf_len) /* didn't get all requested data */ 1135 if ((sz_copied < buf_len) /* didn't get all requested data */
1136 && (!skb_queue_empty(&sock->sk->sk_receive_queue) || 1136 && (!skb_queue_empty(&sk->sk_receive_queue) ||
1137 (flags & MSG_WAITALL)) 1137 (flags & MSG_WAITALL))
1138 /* ... and more is ready or required */ 1138 /* ... and more is ready or required */
1139 && (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */ 1139 && (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */