Skip to content

Commit 45c3ff7

Browse files
Tony Ludavem330
authored andcommitted
net/smc: Clean up local struct sock variables
There remains some variables to replace with local struct sock. So clean them up all. Fixes: 3163c50 ("net/smc: use local struct sock variables consistently") Signed-off-by: Tony Lu <[email protected]> Reviewed-by: Wen Gu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1c74312 commit 45c3ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/smc/smc_close.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ static void smc_close_passive_work(struct work_struct *work)
354354
if (rxflags->peer_conn_abort) {
355355
/* peer has not received all data */
356356
smc_close_passive_abort_received(smc);
357-
release_sock(&smc->sk);
357+
release_sock(sk);
358358
cancel_delayed_work_sync(&conn->tx_work);
359-
lock_sock(&smc->sk);
359+
lock_sock(sk);
360360
goto wakeup;
361361
}
362362

0 commit comments

Comments
 (0)