From nobody Wed Apr 06 23:45:56 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 993701A82985; Wed, 6 Apr 2022 23:45:57 +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 4KYh3S2GyKz3wWn; Wed, 6 Apr 2022 23:45:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288756; 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=6hVsidmbI9CcQd+7P9uncP1Yfy02GT9b9qmiC/t2OSo=; b=Pw+G70hTwHbqegq4fbGSY554svi5jsepS/W/DwOhoqFhw4eCXfhJpc1nM5xVIPW1zb/xoD bBZ6GzDY5li9xOhX3IOEVYeppcf9pYMrY5flE0cax863QEFqnFuJf+E+qbwmnnyYVqGvOG itXBzuYabaMnf17IUW8xvjeyakkO9lafRUhMzyUiPx5kqrQElpoI0/TQgnCrHupdI6YRTq 4/lALtmz2Jn21yyDpeTPU6isrS6wCuehX1tJ0yqF220t/xmp2gCpLRq0BFJLgRpRprmx6h /tE8ehbRx89rQxT+6vxlhnfKUvOkk0geqyQLnNMN0G/GBdbLk+rAGMkUSisiuQ== 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 2DE6824C6E; Wed, 6 Apr 2022 23:45:56 +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 236NjuAD008564; Wed, 6 Apr 2022 23:45:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NjuE7008563; Wed, 6 Apr 2022 23:45:56 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:45:56 GMT Message-Id: <202204062345.236NjuE7008563@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: 99f65e9198c8 - main - iwi: Remove write-only status 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: 99f65e9198c89e96f935986300b8ee3605d1349f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288756; 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=6hVsidmbI9CcQd+7P9uncP1Yfy02GT9b9qmiC/t2OSo=; b=VYJc6Z3LF8z2d+wlWSfqgrwS4evfASJvj8f+52hDhmNBwTQdnmytVYuRgJSH0oSWfrFYOz 1UlFdlI7l1gcFTydnLhfU2Wctme1XvDCBDqDXScuxoGiLzlBluzW8ULeDVmvDI67afwidN nRGc9AjqtC2qHmKqy266qJTcWNzllqW5eWODLefnjRTM+vhQakaUr3FJmO0TWQyFX1u1rv rela6npOFJ40DMKaT6UVICgVKliVWKaM+FNHoZoROEUtoJP4/O4PfCX8a9MRLQPEmgXYtI +3fPGadiPCv9GhpHkMMineffSbEkaFKMvurHbAJOfKi3YMzoS68OSKoCly7Csw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288756; a=rsa-sha256; cv=none; b=wpkalKNmK7ruMFxtXUtuk0tx4FZyjpdeE2d021K89x3dtjw+jzQJa4f6qx05pdoOIHGUGG x832j9xPjiMaAnHFM1hZjZXtCDLj4q3eu11hupumatbvxkGbDs1JTShgymS46MlNYINxAk IWSh4KjbV0HsFWfb4P9PNESp1JNHg94jQ1UkHxyzhTNC3U3nN423er65lXu64YjD84AQX2 ysvMRsvVULFFOx6uwgmprdwHuz1VEHJXc4GFhEEzhScyGyZp8vdhRTexvy9UWlUjpQ6MHg Sgv66tn+dDB4O6xW2wUeHRVGBENzcGidPn3I6CS9a35TFcpTWO0JSP7j3uXbBg== 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=99f65e9198c89e96f935986300b8ee3605d1349f commit 99f65e9198c89e96f935986300b8ee3605d1349f Author: John Baldwin AuthorDate: 2022-04-06 23:45:27 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:27 +0000 iwi: Remove write-only status variable. Skip over unused field from asresp frame header. --- sys/dev/iwi/if_iwi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 360020e01b19..0a65d4d635c2 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -1310,7 +1310,7 @@ iwi_checkforqos(struct ieee80211vap *vap, #define SUBTYPE(wh) ((wh)->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) const uint8_t *frm, *efrm, *wme; struct ieee80211_node *ni; - uint16_t capinfo, status, associd; + uint16_t capinfo, associd; /* NB: +8 for capinfo, status, associd, and first ie */ if (!(sizeof(*wh)+8 < len && len < IEEE80211_MAX_LEN) || @@ -1330,7 +1330,7 @@ iwi_checkforqos(struct ieee80211vap *vap, capinfo = le16toh(*(const uint16_t *)frm); frm += 2; - status = le16toh(*(const uint16_t *)frm); + /* status */ frm += 2; associd = le16toh(*(const uint16_t *)frm); frm += 2;