git: 3797f43e91f8 - main - sgx: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:44 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3797f43e91f831ce53ac25884ff417b3ac4619ff commit 3797f43e91f831ce53ac25884ff417b3ac4619ff Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:28 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:28 +0000 sgx: Remove unused variable. --- sys/amd64/sgx/sgx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/amd64/sgx/sgx.c b/sys/amd64/sgx/sgx.c index 283e13bd0e7c..1c0d9a051990 100644 --- a/sys/amd64/sgx/sgx.c +++ b/sys/amd64/sgx/sgx.c @@ -236,7 +236,6 @@ sgx_va_slot_init(struct sgx_softc *sc, uint64_t va_page_idx; uint64_t idx; vm_object_t object; - int va_slot; int ret; object = enclave->object; @@ -245,7 +244,6 @@ sgx_va_slot_init(struct sgx_softc *sc, pidx = OFF_TO_IDX(addr); - va_slot = pidx % SGX_VA_PAGE_SLOTS; va_page_idx = pidx / SGX_VA_PAGE_SLOTS; idx = - SGX_VA_PAGES_OFFS - va_page_idx;