From nobody Wed May 03 00:29:49 2023 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 4Q9yWf1zckz48NSs; Wed, 3 May 2023 00:29:50 +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 4Q9yWf101zz3n7Y; Wed, 3 May 2023 00:29:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073790; 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=djVKPK97w65+BnG/v8gdcsy65mOaDyBzZs1wfmYUkbQ=; b=BUHka6MHKdXYSGa2O7jqYDZ4y4TUHp3J4h9y/tB4HIh59M0Um1cMjXTVH3xF6b7rXkfA6L UMPBree9ptmN422jegZiFiT+fxkCTJ9YOQJp2rcauBAmulpaXEgOCpoio9RFtB9SGexFiM Vwcw7jxzE6uRYSL8y7OR87NAkthHf3YqxadVCyjORw/qtN1F/Xolrmd8a8hP9U1+0+Mmvk 2qvRGNfP6qp0CUvc4Qetsj/ZwcBC5asXChkp2EMiC6KSEXvmlypDMvx62OkDPRwWnr0PQ9 Z8WjN6/NFkh773GZZMQYq6ChbdrblAZp2oa4ESbZq6taSVftuXupMwzua2QWiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073790; 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=djVKPK97w65+BnG/v8gdcsy65mOaDyBzZs1wfmYUkbQ=; b=sDf1xDkRI/8LIdcZA6OjK/W79Pta79dXRk0e2J6+1E4hznHx0BRzViG53O3XfADiGbySBu FuuXdeyLZSCVTEnx9f9mv9nvO/WNcLHHwrxghLGt6KgaAZzVPcZxcIPkC0xTMeYapO7qcz s+6cHuM6KYt9+pLvE+0lvi3sF4LX35jo0CTMMWXLIYx8ZcuhST8dF2fkuOunX+UmQnyyfE YL6K6weE50zCWCiadg0IWWCZifZXEgNi7DzFCRPl5ymO2XeBa73otUNTsYTKHt74jb5UwJ dzI2yuKxNnVY9WQe1uWLfY8IO0pCNfz6QMvFkb3rWJeJjWTxFBIi7JOuxxJ1og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073790; a=rsa-sha256; cv=none; b=CgkUv9NgSC9CtQT+2Y7bqdJLR8PqdfKAWORz1dhcKk1Mibo+OGRHG2BjaQkkW4Hzg4XINZ STGPLbYR/4kF4z8WhwdU8dl42ER8LVGQ4ggt1bPf+7X1ftaliUqcoVal8wM/AttnrH4ZHa 1ld/FBcjjfCp1skGVvGMq9V1xEykmWM7iaGVbwdBd4S512eNEVM5dDKqijKheS+mWyi3qz FvOiz2xCv9+Ys+wEeTHXieWS3wWSd0I3fQv7kY0Ou/HXUDDfj4+FYsy+sNbzxFS87Qpbk3 gK/qCpxYBrqWJv51mF3WKAFl/IsuVVA5dX1dpwguTBG4N4lfy5HT1a29rdvJKg== 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 4Q9yWf05Tnz18TS; Wed, 3 May 2023 00:29:50 +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 3430Tnkv072197; Wed, 3 May 2023 00:29:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430TnW8072196; Wed, 3 May 2023 00:29:49 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:49 GMT Message-Id: <202305030029.3430TnW8072196@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: c79901ba3d52 - stable/13 - iwi: Remove write-only status variable. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c79901ba3d52f0cebfd5b89d619587e5ebbff201 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c79901ba3d52f0cebfd5b89d619587e5ebbff201 commit c79901ba3d52f0cebfd5b89d619587e5ebbff201 Author: John Baldwin AuthorDate: 2022-04-06 23:45:27 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:18:05 +0000 iwi: Remove write-only status variable. Skip over unused field from asresp frame header. (cherry picked from commit 99f65e9198c89e96f935986300b8ee3605d1349f) --- 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;