git: e3771cc03419 - main - sctp: remove redundant check

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Sat, 05 Aug 2023 09:42:43 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=e3771cc03419b69c8ee851c1ffa85230d0fde1d5

commit e3771cc03419b69c8ee851c1ffa85230d0fde1d5
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2023-08-05 09:26:45 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2023-08-05 09:26:45 +0000

    sctp: remove redundant check
    
    This is already checked by the caller.
    
    MFC after:      1 week
---
 sys/netinet/sctputil.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index a4d4e806c00e..6da4123308d4 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -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)