From nobody Mon Dec 27 17:29:28 2021 X-Original-To: dev-commits-src-main@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 956111911297; Mon, 27 Dec 2021 17:29:28 +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 4JN4RD2X1Sz3JrQ; Mon, 27 Dec 2021 17:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 36ED92204E; Mon, 27 Dec 2021 17:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BRHTSFF091839; Mon, 27 Dec 2021 17:29:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BRHTSK1091838; Mon, 27 Dec 2021 17:29:28 GMT (envelope-from git) Date: Mon, 27 Dec 2021 17:29:28 GMT Message-Id: <202112271729.1BRHTSK1091838@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: 34ae6a1a4428 - main - sctp: cleanup, on functional change intended. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 34ae6a1a442881681a9c63e93a189b9191db50ed Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640626168; 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=G/l+mbzIN+c9sUEUw+uX9f3z0pu/qdW6rhusIrJO5Rs=; b=VAM6fujrRXEPLTKbCVnlaBRASA3kJs+GZBN4iQjJ0Jqv8lwEDUIg0q2sfcU4vuZRIzL0dt wYKdHXu+heL0CJ61LKt9E78O+9tIuaJllgNi+Pyy0Kc2NjQSzhIOuggeBPHrhUKrngb+np Q+4rsHrCth8wFUJFE9zOkR8ltcvg6xJWtGck8OgWpF+93i3mZjnEcC06ZmSYKG878SRRPy M4zAvuaccLsX3z8tPOeNXwj7TilgvCRwUvmuNOL/NJX9ltI9PpL13Hc2b4PHyf6u0NGZWD ReSyirF8WamC/C0QkBPnO6Hbrv3+ujiCLn7IGzORI+63p7iBcyNG6T8vnjaSCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640626168; a=rsa-sha256; cv=none; b=hWflcxi9lLJ09O5A+0wgs0R4wGhSRZEaMIAQoNVJMgx7hFNdHWdIbVHQ0TamkUNtYXy4QT utYr7ocetm1zh0Q6/1xUj76I7xcArfwCY7IJR8bv5zwf40xCtW5a2/SdOa1Ch66GrZUUfA jmHZ4Da5QDONRnz28dPPKxIgxjP8eae9O8DIl5zO6RWoGwlKxDezqS4e7JIBW8GaxncyiZ X2g3qAcK24tWWG0Gqk39pltvLAF7OoRwWiJjcKBE+wWEGU7pF0MIu1demh1tIdQxauBfAF 9GOUSrHI+f2pPmvUAEyC/ZRXIgSlaxxGbTvPs6UHCOiWtiTJAK/8LqXoUOyMLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=34ae6a1a442881681a9c63e93a189b9191db50ed commit 34ae6a1a442881681a9c63e93a189b9191db50ed Author: Michael Tuexen AuthorDate: 2021-12-27 17:28:44 +0000 Commit: Michael Tuexen CommitDate: 2021-12-27 17:28:44 +0000 sctp: cleanup, on functional change intended. MFC after: 3 days --- sys/netinet/sctputil.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 8322603438c3..6c58ad47f274 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -2895,13 +2895,12 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint32_t sctp_calculate_len(struct mbuf *m) { - uint32_t tlen = 0; struct mbuf *at; + uint32_t tlen; - at = m; - while (at) { + tlen = 0; + for (at = m; at != NULL; at = SCTP_BUF_NEXT(at)) { tlen += SCTP_BUF_LEN(at); - at = SCTP_BUF_NEXT(at); } return (tlen); }