mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]>
This commit is contained in:
parent
f5fff5dc8a
commit
43f59c8939
6 changed files with 9 additions and 10 deletions
|
|
@ -1268,12 +1268,12 @@ static inline void tcp_insert_write_queue_after(struct sk_buff *skb,
|
|||
__skb_queue_after(&sk->sk_write_queue, skb, buff);
|
||||
}
|
||||
|
||||
/* Insert skb between prev and next on the write queue of sk. */
|
||||
/* Insert new before skb on the write queue of sk. */
|
||||
static inline void tcp_insert_write_queue_before(struct sk_buff *new,
|
||||
struct sk_buff *skb,
|
||||
struct sock *sk)
|
||||
{
|
||||
__skb_insert(new, skb->prev, skb, &sk->sk_write_queue);
|
||||
__skb_queue_before(&sk->sk_write_queue, skb, new);
|
||||
|
||||
if (sk->sk_send_head == skb)
|
||||
sk->sk_send_head = new;
|
||||
|
|
|
|||
Loading…
Reference in a new issue