Skip to content

Commit cddf0e2

Browse files
Geliang Tangintel-lab-lkp
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 0abb366 commit cddf0e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/mptcp/pm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk)
139139
* be sure to serve this event only once.
140140
*/
141141
if (READ_ONCE(pm->work_pending) &&
142-
!(msk->pm.status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)))
142+
!(pm->status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)))
143143
mptcp_pm_schedule_work(msk, MPTCP_PM_ESTABLISHED);
144144

145-
if ((msk->pm.status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)) == 0)
145+
if ((pm->status & BIT(MPTCP_PM_ALREADY_ESTABLISHED)) == 0)
146146
announce = true;
147147

148-
msk->pm.status |= BIT(MPTCP_PM_ALREADY_ESTABLISHED);
148+
pm->status |= BIT(MPTCP_PM_ALREADY_ESTABLISHED);
149149
spin_unlock_bh(&pm->lock);
150150

151151
if (announce)
@@ -632,7 +632,7 @@ void mptcp_pm_data_reset(struct mptcp_sock *msk)
632632
WRITE_ONCE(pm->addr_signal, 0);
633633
WRITE_ONCE(pm->remote_deny_join_id0, false);
634634
pm->status = 0;
635-
bitmap_fill(msk->pm.id_avail_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
635+
bitmap_fill(pm->id_avail_bitmap, MPTCP_PM_MAX_ADDR_ID + 1);
636636
}
637637

638638
void mptcp_pm_data_init(struct mptcp_sock *msk)

0 commit comments

Comments
 (0)