Commit ed84cadb authored by David S. Miller's avatar David S. Miller

rxrpc: Fix set but unused variable 'usage' in rxrpc_get_transport()

This is identical to the case I fixed in rxrpc_get_peer()
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63722966
...@@ -111,6 +111,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local, ...@@ -111,6 +111,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local,
/* we can now add the new candidate to the list */ /* we can now add the new candidate to the list */
trans = candidate; trans = candidate;
candidate = NULL; candidate = NULL;
usage = atomic_read(&trans->usage);
rxrpc_get_local(trans->local); rxrpc_get_local(trans->local);
atomic_inc(&trans->peer->usage); atomic_inc(&trans->peer->usage);
...@@ -125,7 +126,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local, ...@@ -125,7 +126,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local,
trans->local->debug_id, trans->local->debug_id,
trans->peer->debug_id); trans->peer->debug_id);
_leave(" = %p {u=%d}", trans, atomic_read(&trans->usage)); _leave(" = %p {u=%d}", trans, usage);
return trans; return trans;
/* we found the transport in the list immediately */ /* we found the transport in the list immediately */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment