Skip to content

Commit

Permalink
rxrpc: Fix set but unused variable 'usage' in rxrpc_get_transport()
Browse files Browse the repository at this point in the history
This is identical to the case I fixed in rxrpc_get_peer()

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed May 19, 2011
1 parent 6372296 commit ed84cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/rxrpc/ar-transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local,
/* we can now add the new candidate to the list */
trans = candidate;
candidate = NULL;
usage = atomic_read(&trans->usage);

rxrpc_get_local(trans->local);
atomic_inc(&trans->peer->usage);
Expand All @@ -125,7 +126,7 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local,
trans->local->debug_id,
trans->peer->debug_id);

_leave(" = %p {u=%d}", trans, atomic_read(&trans->usage));
_leave(" = %p {u=%d}", trans, usage);
return trans;

/* we found the transport in the list immediately */
Expand Down

0 comments on commit ed84cad

Please sign in to comment.