From nobody Wed Dec 15 12:36:09 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 9ED3118D4D9E; Wed, 15 Dec 2021 12:36:10 +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 4JDZVL250dz3PLC; Wed, 15 Dec 2021 12:36:10 +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 06AE01C24C; Wed, 15 Dec 2021 12:36:10 +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 1BFCa9lY089380; Wed, 15 Dec 2021 12:36:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFCa9Be089379; Wed, 15 Dec 2021 12:36:09 GMT (envelope-from git) Date: Wed, 15 Dec 2021 12:36:09 GMT Message-Id: <202112151236.1BFCa9Be089379@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: cec04a5d7131 - main - mwl: plug some of set-but-not-used vars 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: cec04a5d713186b0f1957e1682f9bd7afdff1743 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639571770; 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=1QV+CV6Lro6WDY+k1vsPdOVYyyQlfadww2Z2detWoZk=; b=tb9hIG2xyk2RGLRZtN+BzNG+JXSoprVx93oOO/6K3gCQ2ISVI+L8kje0NJkCOH2jc9cH2g INMwU+SQfBVtXtOGk4HtlrpV0kww5LI4ifvk6YCy684xeeMNXeaAfPTJA0vh+sODw8h1lV 98BK37p0oaYDyZH3A70DOuykP4mzgjsdYvTFVMMdfSKKBoC8WvRZtYXJy2MTdwLlXQsPuH 2u0Qyb8ZnS4mCRbq+zyUqG8EB7Y8njHUotjiciuiZ0Vs5j3kdc7YROwCociGgc8WQ8jOaG IE0AI01zt1iUzBK1BifBmoZ/ND9yJbUh5dSRSgKC4EAfOam7qrqmQ5XkH6FqkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639571770; a=rsa-sha256; cv=none; b=sqk5v7vqAh46o/ObcNiYdjgqo2ZgTpFtHXyHuKEp7tv1hFtSPp28ZHAnBaWHP5Z4mgd5nh 3o1NlBfvxxwmaZYxnIPnPs0MUTA53JMHdppLaadMvhgdgKf6NJ+PKUR3Kxb8W7dfV/bBVF yFQxjoQloLVx0KQZ/XECPs8hGmDV90Is1TYEhGIObVVPg5Xd8hP2WRzYWDtwE8kBqXVIf5 wTa+3aF91IVLV3+ycQDjlg6SqckaAmgLQK3fa9fa6bzPYvdzsCNh/tEyVzX0wsC8UqIZn5 4p2L8+jhc5o+6g6E4xxEWXMH8rl94iIj2j9tcDEE7xm8fo2t12l50XwagaXfcQ== 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=cec04a5d713186b0f1957e1682f9bd7afdff1743 commit cec04a5d713186b0f1957e1682f9bd7afdff1743 Author: Mateusz Guzik AuthorDate: 2021-12-15 12:35:38 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-15 12:35:38 +0000 mwl: plug some of set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/mwl/if_mwl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index b2e6747f10c8..d035c5d13816 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -3077,7 +3077,7 @@ mwl_tx_start(struct mwl_softc *sc, struct ieee80211_node *ni, struct mwl_txbuf * struct ieee80211com *ic = &sc->sc_ic; struct ieee80211vap *vap = ni->ni_vap; int error, iswep, ismcast; - int hdrlen, copyhdrlen, pktlen; + int hdrlen, pktlen; struct mwl_txdesc *ds; struct mwl_txq *txq; struct ieee80211_frame *wh; @@ -3092,12 +3092,9 @@ mwl_tx_start(struct mwl_softc *sc, struct ieee80211_node *ni, struct mwl_txbuf * iswep = wh->i_fc[1] & IEEE80211_FC1_PROTECTED; ismcast = IEEE80211_IS_MULTICAST(wh->i_addr1); hdrlen = ieee80211_anyhdrsize(wh); - copyhdrlen = hdrlen; pktlen = m0->m_pkthdr.len; if (IEEE80211_QOS_HAS_SEQ(wh)) { qos = *(uint16_t *)ieee80211_getqos(wh); - if (IEEE80211_IS_DSTODS(wh)) - copyhdrlen -= sizeof(qos); } else qos = 0; @@ -3330,7 +3327,6 @@ mwl_tx_processq(struct mwl_softc *sc, struct mwl_txq *txq) struct mwl_txbuf *bf; struct mwl_txdesc *ds; struct ieee80211_node *ni; - struct mwl_node *an; int nreaped; uint32_t status; @@ -3358,7 +3354,6 @@ mwl_tx_processq(struct mwl_softc *sc, struct mwl_txq *txq) #endif ni = bf->bf_node; if (ni != NULL) { - an = MWL_NODE(ni); status = le32toh(ds->Status); if (status & EAGLE_TXD_STATUS_OK) { uint16_t Format = le16toh(ds->Format);