summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/conn_object.c
diff options
context:
space:
mode:
authorDavid Howells2018-09-27 16:13:07 +0200
committerDavid Howells2018-09-27 16:13:07 +0200
commit092ffc51fb3f9b8369e737c9320bf0bffb2c898f (patch)
treefc140e29262bebe6094132c007e9468ff1bee144 /net/rxrpc/conn_object.c
parentnet-tcp: /proc/sys/net/ipv4/tcp_probe_interval is a u32 not int (diff)
downloadkernel-qcow2-linux-092ffc51fb3f9b8369e737c9320bf0bffb2c898f.tar.gz
kernel-qcow2-linux-092ffc51fb3f9b8369e737c9320bf0bffb2c898f.tar.xz
kernel-qcow2-linux-092ffc51fb3f9b8369e737c9320bf0bffb2c898f.zip
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: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/conn_object.c')
-rw-r--r--net/rxrpc/conn_object.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/rxrpc/conn_object.c b/net/rxrpc/conn_object.c
index 77440a356b14..1746b48cb165 100644
--- a/net/rxrpc/conn_object.c
+++ b/net/rxrpc/conn_object.c
@@ -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",