From nobody Tue Dec 14 01:20:55 2021 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 5D20118D7C0A; Tue, 14 Dec 2021 01:20:57 +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 4JCgYg6lhQz4rCQ; Tue, 14 Dec 2021 01:20:55 +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 ACB0B1F3B7; Tue, 14 Dec 2021 01:20:55 +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 1BE1Kt7u060738; Tue, 14 Dec 2021 01:20:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE1KtoC060737; Tue, 14 Dec 2021 01:20:55 GMT (envelope-from git) Date: Tue, 14 Dec 2021 01:20:55 GMT Message-Id: <202112140120.1BE1KtoC060737@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: d3a7b7168c30 - stable/13 - ip_log: remove set-but-not-unused vars 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d3a7b7168c30ee3b457111826524972de62d0cb7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639444856; 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=C5OnrVZyDNOIN/ZNHXk3Kc+DlJ4ItHakzr+aqHrGsLs=; b=eaXJZipXcdVVUpqgao9vgvRSKS4QMhieuQV0iAvXA2V2gaB2/YRV9vzpzehHxCXQLDfxG6 wb9IX99GIHVtrzAfGUNdAET7f6j8t5M20c9y1tqTqyCpARbZv5Di6XbH5kFj6YzNW3azwA bCyaGYneclBcfciCggzgNIx6wt3DPJmhWYjKjxfiw/8VA5YPRQvwZ8zMHa11GjEzkhoffr sx9WfFNdX20dkN+9PiUyv+72PciLISwpwcXolj0p9cwXffcdUekrBi2C9HZndBTAnqnhca sNKfcjb7hsWNC74c9LHASIkHAoVgGaw+BTC7zkZnfGg3WWrZEzFw6LG/GfGg/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639444856; a=rsa-sha256; cv=none; b=CtKA54HgG8M5y+poCR2If+hxvvoBID4GUGj9uW0XaHDCKloFdW1gYptGDvBAKa9bFo/PBt bGt1HaVUGHlLLbexpFXrW2lM2DvBoDj70dOscSInbmF18Cpcp36/XHKMGl87x3SHb8gXqL KRsreoc8o4zYtZWhYCeL3+tqQHyyAi9ISgJxJVxnUk8bP6w8G+HXItNcUuf6GXLAwHQcNm DqVn1of9dCE/R0WV+8BxBepa+XJz4x4y1XgBkPO60oj9TrLW+Sp6sEUFyOlVCvgiRj3oFq wxtpiNTN3W9hx6L/7jIkX5xomQzr33ztfyMJiZw1tK6wbFFXZctucWV58mFiZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=d3a7b7168c30ee3b457111826524972de62d0cb7 commit d3a7b7168c30ee3b457111826524972de62d0cb7 Author: Cy Schubert AuthorDate: 2021-12-11 05:11:45 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 01:13:05 +0000 ip_log: remove set-but-not-unused vars (cherry picked from commit 664882ab168f7328c23ceaadb473dab794f835d8) --- 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;