sctp: remove redundant check

This is already checked by the caller.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2023-08-05 11:26:45 +02:00
parent 1d7ffb373c
commit e3771cc034

View file

@ -3655,9 +3655,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)