From nobody Tue Dec 14 17:07:28 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 2CBB718E86A8; Tue, 14 Dec 2021 17:07:29 +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 4JD4Yr6PM4z3m3h; Tue, 14 Dec 2021 17:07:28 +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 BC6E34296; Tue, 14 Dec 2021 17:07:28 +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 1BEH7Sxm021182; Tue, 14 Dec 2021 17:07:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEH7StT021181; Tue, 14 Dec 2021 17:07:28 GMT (envelope-from git) Date: Tue, 14 Dec 2021 17:07:28 GMT Message-Id: <202112141707.1BEH7StT021181@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: 35273e2099e6 - main - iwm: 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: 35273e2099e629a3494701036184f2d152bcf7d7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639501648; 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=y/69NNcQE4LJY3rEnkVF07hpx4BqjyyoQX5vSL1RP4I=; b=VMdX8Cw1mrnj/mbjUSiQ66jU1NP6OzuShDsUWWHLWOdWM16FWJ/Lz0RIa182Y0ZBycx45J 8L5Lc5yB0fY2aYyGTO7xVgTEhTjoYFqJDAXN58rp0sfxHXrMCfbdQlbkn/pbHIRO9YsDc8 9DpKuZNl3pbLQjQ6gF/9xZjTBJ0GaO5WdmzManjgeqg2BNUs9xyR+9Dx/4BSunXgTz8K5p wfad5A3QRsFBIpMpS1m5LQ7xdhMyjRttrBfzFY3PgvdI8rvtd5BpYiBikjp2FvoZRWkx2A vpVc+jxyf1WgR9IcCDBm09avNVVNTPUNd5IIuN4KSq3BBsEugR0TB3/aorq4sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639501648; a=rsa-sha256; cv=none; b=nFrgOofFHwcWpT6npwOj6Z4XO8vnarVAJ7YqdjVFridy1PVDV1SeqKaiZeQmwrdakQwrL3 6tV+vRV/QsZBAJSdeZT05QILkA58xu6htnmjU7w7AaUv25Ij/H5nagKqkK5RrpyLl07hqm inyq6lTagZ1Dg+4OKOqZwl5yE8pQXfXNd1FOSEetED1UQnYTcz5PcgJtCoi+PdD6Wh9IoN mF17Nz2vYtSa+W5T1kqIykcJ5bWvCLM90RIbr0p0B1XixHmhaR/nWrULKMr7wwMA+kUICJ iPOViVIIliGnzR/+EhwJAIIb9qR/hTohCdfZi4Roz3LMLbLoiSiewsNpgBDlmw== 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=35273e2099e629a3494701036184f2d152bcf7d7 commit 35273e2099e629a3494701036184f2d152bcf7d7 Author: Mateusz Guzik AuthorDate: 2021-12-14 17:06:56 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 17:06:56 +0000 iwm: plug some of set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/iwm/if_iwm.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 3e34c3cac98e..2ddf7caf8b20 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -2513,15 +2513,12 @@ static int iwm_pcie_load_cpu_sections(struct iwm_softc *sc, const struct iwm_fw_img *image, int cpu, int *first_ucode_section) { - int shift_param; int i, ret = 0; uint32_t last_read_idx = 0; if (cpu == 1) { - shift_param = 0; *first_ucode_section = 0; } else { - shift_param = 16; (*first_ucode_section)++; } @@ -3153,7 +3150,6 @@ iwm_rx_rx_mpdu(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, { struct ieee80211com *ic = &sc->sc_ic; struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps); - struct ieee80211_frame *wh; struct ieee80211_rx_stats rxs; struct iwm_rx_phy_info *phy_info; struct iwm_rx_mpdu_res_start *rx_res; @@ -3164,7 +3160,6 @@ iwm_rx_rx_mpdu(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, phy_info = &sc->sc_last_phy_info; rx_res = (struct iwm_rx_mpdu_res_start *)pkt->data; - wh = (struct ieee80211_frame *)(pkt->data + sizeof(*rx_res)); len = le16toh(rx_res->byte_count); rx_pkt_status = le32toh(*(uint32_t *)(pkt->data + sizeof(*rx_res) + len)); @@ -5480,8 +5475,6 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) break; case IWM_SCAN_ITERATION_COMPLETE: { - struct iwm_lmac_scan_complete_notif *notif; - notif = (void *)pkt->data; break; }