From nobody Sat Aug 05 09:42:43 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RHyLC5Rzhz4Ttlf; Sat, 5 Aug 2023 09:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RHyLC3v4hz4vcm; Sat, 5 Aug 2023 09:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691228563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CrFz1pgv8bmCkDJLYK7kDQveMimyDz2Kt+o1dUGl2Jc=; b=lSEGvpHljUulbDoMEWBwWOULG4prlFqqAIRktSn2ynA1AWPNAHj2wtNrQElm1C6z5dqNqz lr7hq9pJyS2TXXQsCy8nr2DktenlTa7Teq/VtYaq66Rv3P7Z9NZqmtqwNuCmENwngT71Gk VyifGMh8MCnU6vjofTI+a21b32sESXH/Lp4P0PRfdYSN6D3R/fRSAaLPD6G8gVRCB4IAMR TKkcZs17skSUI+OsDWr8ABoqMHYX5g+80ukMsqax9t3mR2y7ZGuz5rSOWi81WbBNceHckW tvG3KdWreYozWi1IBBbNAnGUpnScVy5dYS0/1GUv0z3mXJXpYqBrpYTq5+EZsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691228563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CrFz1pgv8bmCkDJLYK7kDQveMimyDz2Kt+o1dUGl2Jc=; b=cDaSdWUtp15Gz8LUaUtJ8TOM4nErlF361wKfz1lA46FX7VIpoZR1vLEDqvAXeN/4nh24iw qyLHoAjFRO0rBbq384aR1GaXlvQp4qfbwyD44EgoctRuCkf9OM+3fSjN+w99pvDr4FqFk7 RyIU63qXEcO0QPxMIPy+YXfkNSDdRp4tRGJadz9jIM9Ss3PjObMUG8hptPx8kxFe8dsjJh dHFcVN/Tlt2+QCUZgI6OVcKT8hMo/rCSCAiisiKB77h4uobuvXHPlbb5qeOk1RtjXd5iaU kWzs+YSlm8Sl6pft0XRrQShATptBrBJjbZEIT8/j3k7fBGyxjVZoRZMYtk/YCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691228563; a=rsa-sha256; cv=none; b=cpMC5xTn8bYcSnbYE/RVbyBMv7Un8Kjvehlo2eft9CLmGmZn6MmioYPCIARiPhGRXZML90 5X/QW7o1It/wkexZKGoyI3ej+Jn81mZFhTv5PMgMF1uLiBzljAnvohlNGNZEEBtkj5Vpt6 HI2g1HtTCaRTQ/45O1gvI5gqqKmzecJv5nIcPhmv57lmjDEqLDcumrAUVtMMVC/V0GmQ18 4baImXNctlGxKnsnjMakHTJowOtJb2H9vDb0i+XpbaDXU7iBJpsHojZ1TPbTlxtbUBE+Nh rT3g6rOHv17bzSpk81h5J1DC1O/7ueyGY8QvsbXnA1A5pqzbaZRHTBcA6NYzmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RHyLC2zb0z9Gm; Sat, 5 Aug 2023 09:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3759ghkf058960; Sat, 5 Aug 2023 09:42:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3759ghXQ058959; Sat, 5 Aug 2023 09:42:43 GMT (envelope-from git) Date: Sat, 5 Aug 2023 09:42:43 GMT Message-Id: <202308050942.3759ghXQ058959@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: e3771cc03419 - main - sctp: remove redundant check List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e3771cc03419b69c8ee851c1ffa85230d0fde1d5 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=e3771cc03419b69c8ee851c1ffa85230d0fde1d5 commit e3771cc03419b69c8ee851c1ffa85230d0fde1d5 Author: Michael Tuexen AuthorDate: 2023-08-05 09:26:45 +0000 Commit: Michael Tuexen 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)