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

Commit 263ffaee authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: cleanup tcp_listen_worker initialization



The tcp_listen_worker is already initialized when socket is
created (in smc_sock_alloc()). Get rid of the duplicate
initialization in smc_listen(). No functional change.

Signed-off-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4a3e9ff
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1354,7 +1354,6 @@ static int smc_listen(struct socket *sock, int backlog)
	sk->sk_max_ack_backlog = backlog;
	sk->sk_ack_backlog = 0;
	sk->sk_state = SMC_LISTEN;
	INIT_WORK(&smc->tcp_listen_work, smc_tcp_listen_work);
	sock_hold(sk); /* sock_hold in tcp_listen_worker */
	if (!schedule_work(&smc->tcp_listen_work))
		sock_put(sk);