]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rxrpc: Remove dup code from rxrpc_find_connection_rcu()
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Sep 2018 14:13:07 +0000 (15:13 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 27 Sep 2018 14:13:07 +0000 (15:13 +0100)
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>
net/rxrpc/conn_object.c

index 77440a356b14ae60e875fcd94a2613227fd899cf..1746b48cb165e3bebf604c7c3eaf94b489628a98 100644 (file)
@@ -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",