git: b7b4790355b4 - stable/13 - sctp: remove redundant check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jan 2024 12:23:06 UTC
The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=b7b4790355b415b99cdd066cf55e1510e4644da1 commit b7b4790355b415b99cdd066cf55e1510e4644da1 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2023-08-05 09:26:45 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2024-01-11 12:22:43 +0000 sctp: remove redundant check This is already checked by the caller. (cherry picked from commit e3771cc03419b69c8ee851c1ffa85230d0fde1d5) --- sys/netinet/sctputil.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 0f9c0af623b0..0d08db080c46 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -3651,9 +3651,6 @@ sctp_notify_partial_delivery_indication(struct sctp_tcb *stcb, uint32_t error, /* event not enabled */ return; } - if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_CANT_READ) { - return; - } m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_pdapi_event), 0, M_NOWAIT, 1, MT_DATA); if (m_notify == NULL)