summaryrefslogtreecommitdiff
path: root/net/rxrpc/output.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-05-06 18:13:13 +0300
committerDavid Howells <dhowells@redhat.com>2022-11-08 19:42:28 +0300
commit4e76bd406d6e9208ea558953862a47524829688c (patch)
treebe171130ffa30edada01c299c380880d4d0ed361 /net/rxrpc/output.c
parenta4ea4c47761943d90cd5d1688b3c3c65922ff2b1 (diff)
downloadlinux-4e76bd406d6e9208ea558953862a47524829688c.tar.xz
rxrpc: Remove call->lock
call->lock is no longer necessary, so remove it. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org
Diffstat (limited to 'net/rxrpc/output.c')
-rw-r--r--net/rxrpc/output.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/rxrpc/output.c b/net/rxrpc/output.c
index e2f501cef040..2c3f7e4e30d7 100644
--- a/net/rxrpc/output.c
+++ b/net/rxrpc/output.c
@@ -229,13 +229,9 @@ static int rxrpc_send_ack_packet(struct rxrpc_local *local, struct rxrpc_txbuf *
if (txb->ack.reason == RXRPC_ACK_IDLE)
clear_bit(RXRPC_CALL_IDLE_ACK_PENDING, &call->flags);
- spin_lock_bh(&call->lock);
n = rxrpc_fill_out_ack(conn, call, txb);
- spin_unlock_bh(&call->lock);
- if (n == 0) {
- kfree(pkt);
+ if (n == 0)
return 0;
- }
iov[0].iov_base = &txb->wire;
iov[0].iov_len = sizeof(txb->wire) + sizeof(txb->ack) + n;