Skip to content

Commit

Permalink
rxrpc: Remove dup code from rxrpc_find_connection_rcu()
Browse files Browse the repository at this point in the history
rxrpc_find_connection_rcu() initialises variable k twice with the same
information.  Remove one of the initialisations.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Sep 27, 2018
1 parent d4ce580 commit 092ffc5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/rxrpc/conn_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ struct rxrpc_connection *rxrpc_find_connection_rcu(struct rxrpc_local *local,
if (rxrpc_extract_addr_from_skb(local, &srx, skb) < 0)
goto not_found;

k.epoch = sp->hdr.epoch;
k.cid = sp->hdr.cid & RXRPC_CIDMASK;

/* We may have to handle mixing IPv4 and IPv6 */
if (srx.transport.family != local->srx.transport.family) {
pr_warn_ratelimited("AF_RXRPC: Protocol mismatch %u not %u\n",
Expand Down

0 comments on commit 092ffc5

Please sign in to comment.