net/smc: cleanup tcp_listen_worker initialization
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 22 Nov 2018 09:26:34 +0000 (10:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:20:32 +0000 (17:20 -0800)
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: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c

index 80e2119..d9b1a0e 100644 (file)
@@ -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);