From nobody Tue Dec 14 01:22:07 2021 X-Original-To: dev-commits-src-branches@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 B28D118D9267; Tue, 14 Dec 2021 01:22:09 +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 4JCgb44Z2Xz4sV6; Tue, 14 Dec 2021 01:22:08 +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 00AA71F153; Tue, 14 Dec 2021 01:22:08 +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 1BE1M70R065023; Tue, 14 Dec 2021 01:22:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE1M7ce065022; Tue, 14 Dec 2021 01:22:07 GMT (envelope-from git) Date: Tue, 14 Dec 2021 01:22:07 GMT Message-Id: <202112140122.1BE1M7ce065022@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: 27c009fc8826 - stable/12 - ip_log: remove set-but-not-unused vars List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: 27c009fc8826cc2bd359fb56ffd62e111c0ffa44 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639444928; 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=QTWJP10pBFflNxKMYkTXBkzAB5e8FpvV7Dft8vHkQmA=; b=dhQYk+ySMIyknDFGvPWlJlld5UFm5V0RFgvHPBJZ/KxySdLG7XVkZSC6Wu6lHQ02McKqG9 0TH2bhcJc0czwaQvWbnR08kmh93DnTBxolZLQZ16MutrLSyw6RdYlTMKYidButMMJz5uQm bsnKGiTyqT7m2jZsX3f3ZYIgfI2QWUgbG05znra0KF0QHqw9nJE3dd//sWwaeVPdV/Ndqi gXEQ6kBkQnhoQctam9fbp8vKBFkUJ1HECkzc2ABy/PTu3INFOOBc6MkX2LvuXWS5wv7oq3 yKirot9SlhFmniYoI0mhPqst8k9fGRqzGXJmr45WtOLjt5Pb0PCG4ulE9fPgSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639444928; a=rsa-sha256; cv=none; b=nzTHIivV32cWVjfdTwql19dRyobCCZDW2QfburRtYnnU2+Ce1Gg5E53StAMR+p7VCEPxoL NUqDN4UwxLf81Sy9QqnrX6ZU+qrfgX27TZxSdXGq8RD+sVYEBW1GOWqvjoun3V2WDYi4yY rcHV6nbbSDnJdD6LTLa2wpEMjNsyDVDnlxnhjJo5UefewkxPZrajQj34Wgoda24Jvyx+sd XQrUYg/8PjeJIQQa1NtC+6OZ8Myx8/1994haX46kkDrVlPSu6+Mlh5+axy3FcVYFQr1O9b VA2OKRn2evqZ7J5kjhB4iwsiMGOa1udbxB0SsPMkWIuV3lTJpg7HV99ETWk/fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=27c009fc8826cc2bd359fb56ffd62e111c0ffa44 commit 27c009fc8826cc2bd359fb56ffd62e111c0ffa44 Author: Cy Schubert AuthorDate: 2021-12-11 05:11:45 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 01:19:01 +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;