The branch main has been updated by scottl:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4d54d1b7fd06b09495603eb56bf199043aa14fc1

commit 4d54d1b7fd06b09495603eb56bf199043aa14fc1
Author:     Scott Long <sco...@freebsd.org>
AuthorDate: 2021-12-05 22:30:36 +0000
Commit:     Scott Long <sco...@freebsd.org>
CommitDate: 2021-12-05 22:30:36 +0000

    Fix "set but not used" in opencrypto, with a correction for the previous
    commit.
    
    Sponsored by: Rubicon Communications, LLC ("Netgate")
---
 sys/opencrypto/criov.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c
index fe15a59676ae..02b040d787ff 100644
--- a/sys/opencrypto/criov.c
+++ b/sys/opencrypto/criov.c
@@ -158,9 +158,11 @@ static int
 cvm_page_apply(vm_page_t *pages, int off, int len,
     int (*f)(void *, const void *, u_int), void *arg)
 {
+       int processed __unused;
        unsigned count;
        int rval;
 
+       processed = 0;
        CVM_PAGE_SKIP();
        while (len > 0) {
                char *kaddr = (char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages));
@@ -169,6 +171,7 @@ cvm_page_apply(vm_page_t *pages, int off, int len,
                if (rval)
                        return (rval);
                len -= count;
+               processed += count;
                off = 0;
                pages++;
        }

Reply via email to