Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2021 22:31:25 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4d54d1b7fd06 - main - Fix "set but not used" in opencrypto, with a correction for the previous commit.
Message-ID:  <202112052231.1B5MVPfn036008@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by scottl:

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

commit 4d54d1b7fd06b09495603eb56bf199043aa14fc1
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:30:36 +0000
Commit:     Scott Long <scottl@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++;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112052231.1B5MVPfn036008>