Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 092ffc51 authored by David Howells's avatar David Howells
Browse files

rxrpc: Remove dup code from rxrpc_find_connection_rcu()



rxrpc_find_connection_rcu() initialises variable k twice with the same
information.  Remove one of the initialisations.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent d4ce5808
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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",