Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2022 00:03:44 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3797f43e91f8 - main - sgx: Remove unused variable.
Message-ID:  <202204080003.23803iKb086743@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



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