sctp: remove sctp_assoc_pending_pmtu

No need for this helper.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Marcelo Ricardo Leitner
2018-04-26 16:58:56 -03:00
committed by David S. Miller
parent 2f5e3c9df6
commit 2521680e18
2 changed files with 4 additions and 8 deletions

View File

@@ -1918,8 +1918,10 @@ static int sctp_sendmsg_to_asoc(struct sctp_association *asoc,
goto err;
}
if (asoc->pmtu_pending)
sctp_assoc_pending_pmtu(asoc);
if (asoc->pmtu_pending) {
sctp_assoc_sync_pmtu(asoc);
asoc->pmtu_pending = 0;
}
if (sctp_wspace(asoc) < msg_len)
sctp_prsctp_prune(asoc, sinfo, msg_len - sctp_wspace(asoc));