diff options
author | David Howells <dhowells@redhat.com> | 2018-10-04 11:32:27 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-04 11:32:27 +0300 |
commit | d2944b1c66a502ada8aa67f508cd29ecbf035892 (patch) | |
tree | fe330bcab99215fff58ecd65a9717968db962ced /net/rxrpc/skbuff.c | |
parent | 6f41617bf23a17d9cb7cc6ca8161534f05f80293 (diff) | |
download | linux-d2944b1c66a502ada8aa67f508cd29ecbf035892.tar.xz |
rxrpc: Use rxrpc_free_skb() rather than rxrpc_lose_skb()
rxrpc_lose_skb() is now exactly the same as rxrpc_free_skb(), so remove it
and use the latter instead.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/skbuff.c')
-rw-r--r-- | net/rxrpc/skbuff.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/net/rxrpc/skbuff.c b/net/rxrpc/skbuff.c index b8985d01876a..913dca65cc65 100644 --- a/net/rxrpc/skbuff.c +++ b/net/rxrpc/skbuff.c @@ -69,21 +69,6 @@ void rxrpc_free_skb(struct sk_buff *skb, enum rxrpc_skb_trace op) } /* - * Note the injected loss of a socket buffer. - */ -void rxrpc_lose_skb(struct sk_buff *skb, enum rxrpc_skb_trace op) -{ - const void *here = __builtin_return_address(0); - if (skb) { - int n; - CHECK_SLAB_OKAY(&skb->users); - n = atomic_dec_return(select_skb_count(op)); - trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, here); - kfree_skb(skb); - } -} - -/* * Clear a queue of socket buffers. */ void rxrpc_purge_queue(struct sk_buff_head *list) |