Fix "set but not used" in opencrypto, with a correction for the previous
commit. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
5a052b6114
commit
4d54d1b7fd
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user