summaryrefslogtreecommitdiff
path: root/net/rxrpc/sendmsg.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-06-03 22:21:16 +0100
committerDavid Howells <dhowells@redhat.com>2020-06-05 13:36:35 +0100
commit3067bf8c596d59164f48569a2d362de5b4c42f59 (patch)
treeb6ac9b174d1420d528bc8ad5b2ef84ba24e377b5 /net/rxrpc/sendmsg.c
parentbdc48fa11e46f867ea4d75fa59ee87a7f48be144 (diff)
rxrpc: Move the call completion handling out of line
Move the handling of call completion out of line so that the next patch can add more code in that area. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
Diffstat (limited to 'net/rxrpc/sendmsg.c')
-rw-r--r--net/rxrpc/sendmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rxrpc/sendmsg.c b/net/rxrpc/sendmsg.c
index 5e9c43d4a314..5dd9ba000c00 100644
--- a/net/rxrpc/sendmsg.c
+++ b/net/rxrpc/sendmsg.c
@@ -261,10 +261,10 @@ static int rxrpc_queue_packet(struct rxrpc_sock *rx, struct rxrpc_call *call,
case -ENETUNREACH:
case -EHOSTUNREACH:
case -ECONNREFUSED:
- rxrpc_set_call_completion(call,
- RXRPC_CALL_LOCAL_ERROR,
- 0, ret);
- rxrpc_notify_socket(call);
+ if (rxrpc_set_call_completion(call,
+ RXRPC_CALL_LOCAL_ERROR,
+ 0, ret))
+ rxrpc_notify_socket(call);
goto out;
}
_debug("need instant resend %d", ret);