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

Commit 242b1bbe authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp: remove one indentation level in tcp_create_openreq_child

parent 782e85c5
Loading
Loading
Loading
Loading
+113 −110
Original line number Diff line number Diff line
@@ -449,13 +449,17 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
				      struct sk_buff *skb)
{
	struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);

	if (newsk) {
	const struct inet_request_sock *ireq = inet_rsk(req);
	struct tcp_request_sock *treq = tcp_rsk(req);
		struct inet_connection_sock *newicsk = inet_csk(newsk);
		struct tcp_sock *newtp = tcp_sk(newsk);
		struct tcp_sock *oldtp = tcp_sk(sk);
	struct inet_connection_sock *newicsk;
	struct tcp_sock *oldtp, *newtp;

	if (!newsk)
		return NULL;

	newicsk = inet_csk(newsk);
	newtp = tcp_sk(newsk);
	oldtp = tcp_sk(sk);

	smc_check_reset_syn_req(oldtp, req, newtp);

@@ -528,8 +532,7 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
		newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0;
		newtp->window_clamp = min(newtp->window_clamp, 65535U);
	}
		newtp->snd_wnd = (ntohs(tcp_hdr(skb)->window) <<
				  newtp->rx_opt.snd_wscale);
	newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale;
	newtp->max_window = newtp->snd_wnd;

	if (newtp->rx_opt.tstamp_ok) {
@@ -561,7 +564,7 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
	newtp->rack.dsack_seen = 0;

	__TCP_INC_STATS(sock_net(sk), TCP_MIB_PASSIVEOPENS);
	}

	return newsk;
}
EXPORT_SYMBOL(tcp_create_openreq_child);