git: 664882ab168f - main - ip_log: remove set-but-not-unused vars

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Sat, 11 Dec 2021 05:53:16 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=664882ab168f7328c23ceaadb473dab794f835d8

commit 664882ab168f7328c23ceaadb473dab794f835d8
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 05:11:45 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
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;