diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-22 00:28:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 00:28:51 -0400 |
commit | 43f59c89399fd76883a06c551f24794e98409432 (patch) | |
tree | 7ef8ac7047ea5e74c9d522d6438d03fb69a3ba67 /include/net/tcp.h | |
parent | f5fff5dc8a7a3f395b0525c02ba92c95d42b7390 (diff) |
net: Remove __skb_insert() calls outside of skbuff internals.
This minor cleanup simplifies later changes which will convert
struct sk_buff and friends over to using struct list_head.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index ea815723d414..f857c3eff710 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1268,12 +1268,12 @@ static inline void tcp_insert_write_queue_after(struct sk_buff *skb, | |||
1268 | __skb_queue_after(&sk->sk_write_queue, skb, buff); | 1268 | __skb_queue_after(&sk->sk_write_queue, skb, buff); |
1269 | } | 1269 | } |
1270 | 1270 | ||
1271 | /* Insert skb between prev and next on the write queue of sk. */ | 1271 | /* Insert new before skb on the write queue of sk. */ |
1272 | static inline void tcp_insert_write_queue_before(struct sk_buff *new, | 1272 | static inline void tcp_insert_write_queue_before(struct sk_buff *new, |
1273 | struct sk_buff *skb, | 1273 | struct sk_buff *skb, |
1274 | struct sock *sk) | 1274 | struct sock *sk) |
1275 | { | 1275 | { |
1276 | __skb_insert(new, skb->prev, skb, &sk->sk_write_queue); | 1276 | __skb_queue_before(&sk->sk_write_queue, skb, new); |
1277 | 1277 | ||
1278 | if (sk->sk_send_head == skb) | 1278 | if (sk->sk_send_head == skb) |
1279 | sk->sk_send_head = new; | 1279 | sk->sk_send_head = new; |