From nobody Tue Dec 14 14:13:05 2021 X-Original-To: dev-commits-src-all@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 D318118EA38F; Tue, 14 Dec 2021 14:13:05 +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 4JD0hd4JTHz4l23; Tue, 14 Dec 2021 14:13:05 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 74EE01745; Tue, 14 Dec 2021 14:13:05 +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 1BEED5Uk093963; Tue, 14 Dec 2021 14:13:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEED5ln093962; Tue, 14 Dec 2021 14:13:05 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:13:05 GMT Message-Id: <202112141413.1BEED5ln093962@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 94b098882f39 - main - vmx: plug set-but-not-used var List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 94b098882f39341ef306e156bca1b248b385be09 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639491185; 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=QcYh95ToZjrtwf03kMOz6VIDJ+CuOTbfjgmbNrsaLm4=; b=Fr9K9YL72jRWbH/S0STlAIir3f6hfrMxyT2muAwWBdcmF0Rp0PfBvpNHG2ibi/vQN4SxCz 9irSsPp88ovRwi1zSfsPahL/9iljq4/EdFHyzgohP5U9DlPuoEa000EsZbWicWkLxwJKGB ov8it0+ljxVX7krgRYjATlcbKXoNObkT2bVS84gcTPI78DvHgGBVvhIyiWJhAOEwnigRh8 irWDVzp2MyE2yJFTV8kmRA00XGfTMaKW1qmSjNa4vFXM+SrDjNSiHx/QHVVA2is9McXzGT mv2bQ7FLtPdRXWb5s0NyoVPg66FbzjS2sHy5JCJ4mpDX3gE1H6KR3U9t5I6BMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639491185; a=rsa-sha256; cv=none; b=tvZ+BSYPR07SfnKlELLjAo8kOP/aiVlFVviffavm/+XxE/uYAsYm5d0iib9xD/693G6jf3 CJvEhfDTL0dsAkaHPoMTzYI1FkMScsYQVjxU6lE9Nwvac6aDAbeaTOnu26oz+aYzzUgVyD dyLUo5S+9CUrvZL8tPaYeZhPOGWU5UGmRZp+GKVMRLclFl9TdylMGmJDyZ2tzTm4uZJje0 16ad+VFeKpSKbZET9B+svtm6S2cm7SpgRwDDam48GVOeVIAFVmcpqzEy172NeVvJntK3ee ZHIE913vPzB46nVH3t4np8DlmxV+oRl8D6xf+2y9eyN7XcAXNg6lE3THE3IHXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=94b098882f39341ef306e156bca1b248b385be09 commit 94b098882f39341ef306e156bca1b248b385be09 Author: Mateusz Guzik AuthorDate: 2021-12-14 14:12:35 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:12:35 +0000 vmx: plug set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/vmware/vmxnet3/if_vmx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c index 85f831e44755..6f1ed1e58ca7 100644 --- a/sys/dev/vmware/vmxnet3/if_vmx.c +++ b/sys/dev/vmware/vmxnet3/if_vmx.c @@ -540,12 +540,10 @@ vmxnet3_free_irqs(struct vmxnet3_softc *sc) static int vmxnet3_attach_post(if_ctx_t ctx) { - device_t dev; if_softc_ctx_t scctx; struct vmxnet3_softc *sc; int error; - dev = iflib_get_dev(ctx); scctx = iflib_get_softc_ctx(ctx); sc = iflib_get_softc(ctx); @@ -1047,7 +1045,6 @@ static void vmxnet3_init_shared_data(struct vmxnet3_softc *sc) { struct vmxnet3_driver_shared *ds; - if_shared_ctx_t sctx; if_softc_ctx_t scctx; struct vmxnet3_txqueue *txq; struct vmxnet3_txq_shared *txs; @@ -1056,7 +1053,6 @@ vmxnet3_init_shared_data(struct vmxnet3_softc *sc) int i; ds = sc->vmx_ds; - sctx = sc->vmx_sctx; scctx = sc->vmx_scctx; /* @@ -1157,7 +1153,6 @@ vmxnet3_reinit_rss_shared_data(struct vmxnet3_softc *sc) 0x96, 0xa6, 0x9f, 0x8f, 0x9e, 0x8c, 0x90, 0xc9, }; - struct vmxnet3_driver_shared *ds; if_softc_ctx_t scctx; struct vmxnet3_rss_shared *rss; #ifdef RSS @@ -1165,7 +1160,6 @@ vmxnet3_reinit_rss_shared_data(struct vmxnet3_softc *sc) #endif int i; - ds = sc->vmx_ds; scctx = sc->vmx_scctx; rss = sc->vmx_rss; @@ -1730,13 +1724,9 @@ static void vmxnet3_isc_rxd_flush(void *vsc, uint16_t rxqid, uint8_t flid, qidx_t pidx) { struct vmxnet3_softc *sc; - struct vmxnet3_rxqueue *rxq; - struct vmxnet3_rxring *rxr; bus_size_t r; sc = vsc; - rxq = &sc->vmx_rxq[rxqid]; - rxr = &rxq->vxrxq_cmd_ring[flid]; if (flid == 0) r = VMXNET3_BAR0_RXH1(rxqid);