diff options
author | Scott Long <scottl@FreeBSD.org> | 2021-12-05 22:30:36 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2021-12-05 22:30:36 +0000 |
commit | 4d54d1b7fd06b09495603eb56bf199043aa14fc1 (patch) | |
tree | 3b35204eaea76a9d08684681f50f3c87b2b24b48 /sys/opencrypto | |
parent | 5a052b6114eae84a52519f75a4d504f544f86f98 (diff) | |
download | src-4d54d1b7fd06b09495603eb56bf199043aa14fc1.tar.gz src-4d54d1b7fd06b09495603eb56bf199043aa14fc1.zip |
Fix "set but not used" in opencrypto, with a correction for the previous
commit.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/opencrypto')
-rw-r--r-- | sys/opencrypto/criov.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++; } |