From nobody Sat Dec 11 05:53:16 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 043F718E7A35; Sat, 11 Dec 2021 05:53:18 +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 4J9xlK35Lkz4vGG; Sat, 11 Dec 2021 05:53:17 +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 D18DC936; Sat, 11 Dec 2021 05:53:16 +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 1BB5rGwd059327; Sat, 11 Dec 2021 05:53:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BB5rGrC059326; Sat, 11 Dec 2021 05:53:16 GMT (envelope-from git) Date: Sat, 11 Dec 2021 05:53:16 GMT Message-Id: <202112110553.1BB5rGrC059326@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 664882ab168f - main - ip_log: remove set-but-not-unused vars 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 664882ab168f7328c23ceaadb473dab794f835d8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639201997; 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=Am60YM4bxWn2rfUZoln8ggcP1G+1nHnvh8AN0xineFo=; b=R8CTIsGawEVvUp7LeV5PVaabJ1QKchHwa5F/V9Q/6lrmd5eQWnk019ap4rLwjeFIhLgeri ZfkbbCIlnGuX5ovd/O3ZIR5bc86CdNcxC8GskDv0540y+dxlAWQ3zOz0ZJNTv2hBZkS19D oELv13pI1Rpl/nNplFliUpNHk3eqiSn58GONge+dhQpUxdvn78JbrWbHS3kP7INp8NmFpp Q1KE5lvp/A84aYxgS9FzMXct/Yl3qBAPSXd2uWEk/NT3jS5pf+lj2IAS/BXkSWAQ9d3zWF qN74u+GQFV0Ss9EjIhNVrHHHBXGWohHFDIucAiqr3dIodNC4KvJ5BpleK+KhTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639201997; a=rsa-sha256; cv=none; b=M1weEd/KvFmg5sTNEiG0y7B/3p9fBK8XZHMA5+VWu/qmd5ZQzZ2PL3lT6sIraBaAt8k0/O vkKJBOHApykKa6lVszdXJK0TrDIBj39x1OQXTAsmsKvvwVcuv4p+e9Gw5OAUCQ0dHyG7Tf SEMtCxmcFuK5JPMlxPYw568AM8FvHp9otV+sYGrVKWn34qyfU1WAtSaaA3u/PnPv9saHRi 4bnCg3DexQHxEOnNibR79d3risq4vQOgCdMAPkwICaQWnV+Vl9Q9W6fekmkBmJa9J5TZ8/ IeEzJl6xrdKhnz9+AFUS4Z7c8EtLjFZvRq63s25gb0KoOYkActGXlPF7IZrzkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=664882ab168f7328c23ceaadb473dab794f835d8 commit 664882ab168f7328c23ceaadb473dab794f835d8 Author: Cy Schubert AuthorDate: 2021-12-11 05:11:45 +0000 Commit: Cy Schubert CommitDate: 2021-12-11 05:52:54 +0000 ip_log: remove set-but-not-unused vars MFC after: 3 days --- sys/contrib/ipfilter/netinet/ip_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/ipfilter/netinet/ip_log.c b/sys/contrib/ipfilter/netinet/ip_log.c index 7a80b3e0d4e7..0f31b9983551 100644 --- a/sys/contrib/ipfilter/netinet/ip_log.c +++ b/sys/contrib/ipfilter/netinet/ip_log.c @@ -666,7 +666,7 @@ ipf_log_read(softc, unit, uio) struct uio *uio; { ipf_log_softc_t *softl = softc->ipf_log_soft; - size_t dlen, copied; + size_t dlen; int error = 0; iplog_t *ipl; SPL_INT(s); @@ -738,7 +738,7 @@ ipf_log_read(softc, unit, uio) uio->uio_rw = UIO_READ; # endif - for (copied = 0; (ipl = softl->iplt[unit]) != NULL; copied += dlen) { + for (; (ipl = softl->iplt[unit]) != NULL;) { dlen = ipl->ipl_dsize; if (dlen > uio->uio_resid) break;