diff options
author | David Howells <dhowells@redhat.com> | 2018-10-04 10:32:27 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-04 10:32:27 +0200 |
commit | d2944b1c66a502ada8aa67f508cd29ecbf035892 (patch) | |
tree | fe330bcab99215fff58ecd65a9717968db962ced /net/rxrpc/skbuff.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-d2944b1c66a502ada8aa67f508cd29ecbf035892.tar.xz linux-d2944b1c66a502ada8aa67f508cd29ecbf035892.zip |
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) |