]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/smc: Clean up local struct sock variables
authorTony Lu <tonylu@linux.alibaba.com>
Tue, 23 Nov 2021 08:25:16 +0000 (16:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Nov 2021 11:42:24 +0000 (11:42 +0000)
There remains some variables to replace with local struct sock. So clean
them up all.

Fixes: 1552805ff80f ("net/smc: use local struct sock variables consistently")
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_close.c

index 0f9ffba07d26858cfd07c53567e14700884553d4..9b235fbb089a47df31b71ee8f83b54e9c8d94a38 100644 (file)
@@ -354,9 +354,9 @@ static void smc_close_passive_work(struct work_struct *work)
        if (rxflags->peer_conn_abort) {
                /* peer has not received all data */
                smc_close_passive_abort_received(smc);
-               release_sock(&smc->sk);
+               release_sock(sk);
                cancel_delayed_work_sync(&conn->tx_work);
-               lock_sock(&smc->sk);
+               lock_sock(sk);
                goto wakeup;
        }