git: d3a7b7168c30 - stable/13 - ip_log: remove set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Dec 2021 01:20:55 UTC
The branch stable/13 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=d3a7b7168c30ee3b457111826524972de62d0cb7
commit d3a7b7168c30ee3b457111826524972de62d0cb7
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 05:11:45 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
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;