From nobody Thu Dec 09 16:37:33 2021 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 37AB518D281C; Thu, 9 Dec 2021 16:37:34 +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 4J907d4m0qz56Dl; Thu, 9 Dec 2021 16:37:33 +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 7C70C1C44; Thu, 9 Dec 2021 16:37:33 +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 1B9GbXjm058482; Thu, 9 Dec 2021 16:37:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9GbXPw058481; Thu, 9 Dec 2021 16:37:33 GMT (envelope-from git) Date: Thu, 9 Dec 2021 16:37:33 GMT Message-Id: <202112091637.1B9GbXPw058481@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: d8664f6e2fa1 - main - et: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d8664f6e2fa1938258de0a0734b50c364a04132b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639067853; 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=7ArxFl08lxEbjdyQDHf+hwWikNfRAbw/3JCSiyD1HpE=; b=iiIbDMDKJH6T5Jo7NbCywrRM7f6hO+L8R3vYZljNmvz1JYQP5479V6HkzEAsT3Qo+5vMVG Z9GNokRyv5VUStaaXwKbMjRz0NaqZy7lIZTL0wd2L+uBmE/Gdm5KlTLR4C74+G6M/cHart OBsFFHnb1jLyGWDauOBv/F9enONSIylcB0HJpZQACObZ1ufEP9qivh+MO6DULs0L97tpaY IdiK1qBy/bU0JnQ9D7VKykcsJ/551pDBIA+MqS6ULK0I4zFoTcf8FaJDQ+m1KBjyl7FkRF EpydqNQYvrbtdmcHRfv2Z1McTQrDeBC/7UG61Y7+nM24Kh3skrzULz1vNdxwMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639067853; a=rsa-sha256; cv=none; b=B6d3t+mfEHsH6KNmU42EbEZcSwd+dwhUWvYxNQJk+qdLlNrmwBWR6VCs4trX+8cnkL5GFB UNb57JN7YXBTYwySf8m3do+j4GIIdptDTGVOL8kMoJbgsmJa5GFywnPwyS0V4peYeQa9FH SHRM7+/1L2/2HBVgBG+kOmjwv8SFK85ZSLymPQkZ3eKnnIWEMeCJyEb7kKSyqwC5GDRXM2 HQveru+tcH1JGdEaGwLX/QyUA8Zv2L/V+PeUurbLyfE1MDdCKkqBcGyy/p0f0YQP785LvS lX1bfspel9QKPvqqLSbc2WIfM+DssppWCn/zUlJih+VfG/RujAOXXGMdLiagPg== 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=d8664f6e2fa1938258de0a0734b50c364a04132b commit d8664f6e2fa1938258de0a0734b50c364a04132b Author: Mateusz Guzik AuthorDate: 2021-12-09 16:28:08 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 16:37:26 +0000 et: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/et/if_et.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index 99865142bf37..37eb5c1b8bb1 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -1050,7 +1050,6 @@ et_dma_free(struct et_softc *sc) struct et_rxdesc_ring *rx_ring; struct et_txstatus_data *txsd; struct et_rxstat_ring *rxst_ring; - struct et_rxstatus_data *rxsd; struct et_rxbuf_data *rbd; struct et_txbuf_data *tbd; int i; @@ -1118,7 +1117,6 @@ et_dma_free(struct et_softc *sc) et_dma_ring_free(sc, &rxst_ring->rsr_dtag, (void *)&rxst_ring->rsr_stat, rxst_ring->rsr_dmap, &rxst_ring->rsr_paddr); /* Destroy RX status block. */ - rxsd = &sc->sc_rx_status; et_dma_ring_free(sc, &rxst_ring->rsr_dtag, (void *)&rxst_ring->rsr_stat, rxst_ring->rsr_dmap, &rxst_ring->rsr_paddr); /* Destroy TX ring. */ @@ -1504,13 +1502,11 @@ et_stop_txdma(struct et_softc *sc) static void et_free_tx_ring(struct et_softc *sc) { - struct et_txdesc_ring *tx_ring; struct et_txbuf_data *tbd; struct et_txbuf *tb; int i; tbd = &sc->sc_tx_data; - tx_ring = &sc->sc_tx_ring; for (i = 0; i < ET_TX_NDESC; ++i) { tb = &tbd->tbd_buf[i]; if (tb->tb_mbuf != NULL) { @@ -2308,12 +2304,10 @@ static void et_tick(void *xsc) { struct et_softc *sc; - struct ifnet *ifp; struct mii_data *mii; sc = xsc; ET_LOCK_ASSERT(sc); - ifp = sc->ifp; mii = device_get_softc(sc->sc_miibus); mii_tick(mii);