From nobody Fri Apr 08 00:03:44 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B8BEE1A8839A; Fri, 8 Apr 2022 00:03:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZJPX2q0Gz4lBV; Fri, 8 Apr 2022 00:03:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhozFlAfdmsgMc0PX11EAMoHa3LEWi3u1Lkn1kjqftc=; b=dTOkgnH5IZtIBc2bMt0WT+Z+vC7o4VOw2a6E+Eqmbl09oZcp/qRKeG0hVz+MKdviwT8C9J g/vCDN7jOevDPD6qCB+vWTYEr57D9gu2egPs6s8ru9TZbTF/e5pYyTCjFT19XXJ9SxvZaD pITjVMXym9W42r7fuh2BiPASrh8pl22vqj+iYUPr5l7+pm6xXKHeoXwjJ2ICdY83G/+S/9 P7//XXcL/HzTIHTjRueQVD60RDjBVCDCfvDuxwDRKC3GYwXISvvTZ/NQuxgNAlZeTk7cKf QuFuFwAxS0Dg2D+GPmYIPCmcB2zSr0BYE+eOlDzyLV4cPQesljlGohFBWUKhTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D65719B69; Fri, 8 Apr 2022 00:03:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23803iB8086744; Fri, 8 Apr 2022 00:03:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23803iKb086743; Fri, 8 Apr 2022 00:03:44 GMT (envelope-from git) Date: Fri, 8 Apr 2022 00:03:44 GMT Message-Id: <202204080003.23803iKb086743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3797f43e91f8 - main - sgx: Remove unused variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3797f43e91f831ce53ac25884ff417b3ac4619ff Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhozFlAfdmsgMc0PX11EAMoHa3LEWi3u1Lkn1kjqftc=; b=DGZr9K7WUb6/YoRJM3jR4VsRdKchZMksxvf3TaZ2NG964RdQ+LevTzbj0MtTlT6PATmiXI jicF5abZ+yJwFZZQGzdlGIUiIme3yymqM+NnIJp6iGIg9r6RvF2LnIePCMdfmXpmnu3N8Y yeBpH7jSoFtDpVeVj3IAFtfZ4c2LWe77ap47cEzp3D/kzhrTGOp9PbPWNjb5lhgpPRytgg NqZTMeub0h7S6u38d3SBUNVF0r3+Bp/3xI2WmImmqgL2O8ty2jALKsnvia3fgSIH9QcB60 Sn7/+YoErMg7XElRsFl+D6/oTDFxRqwGh4lQqImbYIAFrp9suCLgmZORLC253A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649376224; a=rsa-sha256; cv=none; b=hPPeP8SH6PlwWP8XEWCvE+DDimNgIG7apiqizKIYqUZpME9MKOp7ZyRSU2TOMJ8gAgXYvf 0w8aZFgXeHYA7t93r7xxMtkQXK5Krnu0frFTL7cQTkg0Dwdx1+s7ePk4FOlAMX0oErVar7 4sBsAjgJcvjJDBfeMUGJgFZA1H4IxTsBUG7wFTsjnmvNGf36F0XlJHKAfJGPbRWHaMlb1/ MOfYHkVBc+gNK6loItxnkBvo/C4ZGN2OG3tFIr9qhpZjcFFLDlxZ4Ice6GoRlovcH8iLSP k1dwj5lxBIZ+p1E6FGhJQqQfHGOFRMx3YWFJatONn10Afza2SfrOugICKviJnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3797f43e91f831ce53ac25884ff417b3ac4619ff commit 3797f43e91f831ce53ac25884ff417b3ac4619ff Author: John Baldwin AuthorDate: 2022-04-08 00:01:28 +0000 Commit: John Baldwin 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;