diff options
| author | Geliang Tang <[email protected]> | 2023-01-06 18:57:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-01-09 07:30:49 +0000 |
| commit | 3c976f4c99237bcdab918ad18e7bee3b77e6d316 (patch) | |
| tree | 86b3aa54ed38966252376a4a24960fa018b460b9 /net/mptcp/options.c | |
| parent | mptcp: use net instead of sock_net (diff) | |
| download | kernel-3c976f4c99237bcdab918ad18e7bee3b77e6d316.tar.gz kernel-3c976f4c99237bcdab918ad18e7bee3b77e6d316.zip | |
mptcp: use local variable ssk in write_options
The local variable 'ssk' has been defined at the beginning of the function
mptcp_write_options(), use it instead of getting 'ssk' again.
Reviewed-by: Mat Martineau <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/mptcp/options.c')
| -rw-r--r-- | net/mptcp/options.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 5ded85e2c374..b30cea2fbf3f 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -1594,8 +1594,7 @@ mp_rst: TCPOLEN_MPTCP_PRIO, opts->backup, TCPOPT_NOP); - MPTCP_INC_STATS(sock_net((const struct sock *)tp), - MPTCP_MIB_MPPRIOTX); + MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_MPPRIOTX); } mp_capable_done: |
