Skip to content

Commit b98cd1b

Browse files
Geliang Tangintel-lab-lkp
Geliang Tang
authored andcommitted
mptcp: pm: use pm variable instead of msk->pm
The variable "pm" has been defined in mptcp_pm_fully_established() and mptcp_pm_data_reset() as "sk->pm", so use "pm" directly instead of using "sk->pm". Signed-off-by: Geliang Tang <[email protected]>
1 parent fd92b90 commit b98cd1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/mptcp/pm.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk)
511511
* be sure to serve this event only once.
512512
*/
513513
if (READ_ONCE(pm->work_pending) &&
514-
!(msk->pm.status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)))
514+
!(pm->status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)))
515515
mptcp_pm_schedule_work(msk, MPTCP_PM_ESTABLISHED);
516516

517-
if ((msk->pm.status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)) == 0)
517+
if ((pm->status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)) == 0)
518518
announce = true;
519519

520-
msk->pm.status |= BIT(MPTCP_PM_ALREADY_ESTABLISHED);
520+
pm->status |= BIT(MPTCP_PM_ALREADY_ESTABLISHED);
521521
spin_unlock_bh(&pm->lock);
522522

523523
if (announce)
@@ -1009,7 +1009,7 @@ void mptcp_pm_data_reset(struct mptcp_sock *msk)
10091009
WRITE_ONCE(pm->addr_signal, 0);
10101010
WRITE_ONCE(pm->remote_deny_join_id0, false);
10111011
pm->status = 0;
1012-
bitmap_fill(msk->pm.id_avail_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
1012+
bitmap_fill(pm->id_avail_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
10131013
}
10141014

10151015
void mptcp_pm_data_init(struct mptcp_sock *msk)

0 commit comments

Comments
 (0)