From nobody Tue Apr 12 21:59:41 2022 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 82BF91AFCEA0; Tue, 12 Apr 2022 21:59:44 +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 4KdKQ56rXbz4j08; Tue, 12 Apr 2022 21:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800782; 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=hDdnLXs99D/ZK0f8bdlEn88yY8ObuMsxGTaLrlxhMLU=; b=CMPygzZSvo5tmCUI5G0hCGQq/Pp0tyFvRujDIoO2SM6Yv4Q8BN2D6m6OnsdDGsB+kvD1JX HEURxDja1rNkbId4qzdTCnpYXWf8gN/ZOETkV02YlImQ1e+1QU/zjmXYFKDqhpjxZ60EQ2 mUihEI7Uj/PgLFL3hjdOZKQcEF89/o7SuVtR7kUvQruU2zapig1vM+YOF5N0/ugLLIvrID 8dJcF09pFpsTdVmbfDbD+TcC18fIPJqmImwsn6YBeMfS2mwRO7OLM5k7hgsxdOuV6eIo2a +auuiZyhw/h4z7eF9sgm1p8kWyAcNMc/+QV+tXrKh690sf4iz2iPnhtIqojcFA== 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 69C701F692; Tue, 12 Apr 2022 21:59:41 +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 23CLxfPZ035855; Tue, 12 Apr 2022 21:59:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxfA7035854; Tue, 12 Apr 2022 21:59:41 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:41 GMT Message-Id: <202204122159.23CLxfA7035854@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 90948e8c2e51 - main - sctp: Remove unused variable. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90948e8c2e513303ffc087162a96a9ac4f4f169d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800782; 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=hDdnLXs99D/ZK0f8bdlEn88yY8ObuMsxGTaLrlxhMLU=; b=JuT3I9V9QgP2LszHTtA9h+mjKbOsULB4QCmeZcJKB/TwOFvRURdHan+58bV4mjqurjp16t OD4l36FLsW1JuKmySDA/3z1VTW6j0chRFjyK+9LzH8Ma+FB+NmMhbhu6iM6CNoc5K/+lQN hYGEI770pQwuait98ErBzhfRKLfjFlAir7y/kRe5n8DYvxXWL0HFgScFoT6DcL/ZPe8QqO enTsg2/GzSHw/3wN3E2XTRzoiyMtOTtfWY4I0qqF6ZcpQdfx5F8u6s6Suj3nsvmzIHMpic dirzE1SWnmNx4WKpNRxYDnhVbbmpfMTsi6YdOgQT33mNzUDlnMSoqvTMBqwEmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800782; a=rsa-sha256; cv=none; b=UrzwkYSyYDNBHUTqmOQdiQnjfqLOUmesbcd+n/bEDZmeJb5cvHTET3Lv51FXlpp3Y7dsyb qdvhZhkMOl6MVcREJwHVKTmunciIj6v7+4H3XzuRaQe+Jg8CFqlSL03khKJY1KLh3b2l1d 0ehjuri4KqsTgB0gFWDSieSDMqm1Xm9VXubeLDxtv6JGIZiFnd+hCQ2lFDaCbmMZ7XJHWP vjCYS0fqY6Fw13JSidTi72i/SHSh7mFwH6RozcQfnx8fhIKlfOC2wpzWa1rUDTGfInaKBO QfwDDFL1fIbk6MFdRaf//+qcrOKD1hRje69F+5fBG1G7KFQ1eFQF18CGu6DYZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=90948e8c2e513303ffc087162a96a9ac4f4f169d commit 90948e8c2e513303ffc087162a96a9ac4f4f169d Author: John Baldwin AuthorDate: 2022-04-12 21:58:59 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:59 +0000 sctp: Remove unused variable. --- sys/netinet/sctp_bsd_addr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index a36c360279ff..c2f6b786948a 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -486,11 +486,10 @@ sctp_copy_out_packet_log(uint8_t *target, int length) * We wind through the packet log starting at start copying up to * length bytes out. We return the number of bytes copied. */ - int tocopy, this_copy; + int this_copy; int *lenat; int did_delay = 0; - tocopy = length; if (length < (int)(2 * sizeof(int))) { /* not enough room */ return (0);