From nobody Mon Feb 28 17:50:39 2022 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 387D619EFDA8; Mon, 28 Feb 2022 17:50:40 +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 4K6nwb3qnzz3mm2; Mon, 28 Feb 2022 17:50:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646070639; 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=M7H+sqFmLXZJgLsQXt8nWYj1VNNNt73kCZO/uAba4fs=; b=ns4EsZ1faWQ6U0JSmheVPnaH0yoB9DJSNmkCxN0rHEtJroFVsvp8ZB8F6qcRkAxYJr4tXJ 20rWUBgM7MlVm5FCWo7MOspuKZMpiMBwZmsviTPBYjAykQkhdmoq2oYClWU+0owxMMNsRx P7r4oFKzSSOS9S3aelMMzV1kw4I8zVjcbUrl7L0Ha/SD4SMxN2mx557O1r/fgSJEOn9VZj khmQ3tv1jiw0r/wxOyJFeKiEtOYsiTI576LLrOn0FijWdeNeRJLTnvUtiJN8dNeGV0lobd WzouofM642K1cGHhxPxM/tMqUQXHTgblkcitwMOtZKdBeyoy2BF+WXaNs2vH2g== 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 4EFD01FDA0; Mon, 28 Feb 2022 17:50:39 +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 21SHod2H068438; Mon, 28 Feb 2022 17:50:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SHodNU068437; Mon, 28 Feb 2022 17:50:39 GMT (envelope-from git) Date: Mon, 28 Feb 2022 17:50:39 GMT Message-Id: <202202281750.21SHodNU068437@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: dbd330fc1c38 - main - bwn: Remove useless 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dbd330fc1c387542b773475fe55b28e3f7abbdad Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646070639; 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=M7H+sqFmLXZJgLsQXt8nWYj1VNNNt73kCZO/uAba4fs=; b=gVzFxIZbJEg6wgND64H7k4OvIe5q1RtBRpBapzUT9LMnxjNTpbcs811iH916sV9+14qeCV lAXyMbnoXur6HDZd94xTw4logunJuaxzdpO5VMKXwjctn282Iaqg0ylxYbKVs5uNqsy9p3 IElzmRE+ul7dKZe/wT/pIWWDBzvm/9Qh6+y25wNdk0aIeCjX7QYC1SkU8lAgp/O5mooQw3 R/loHD8dx4Un74v58LEQ1JYsy2PXM19HULPMbm5K7h5gFGbJcr7sApS+ekzt+T9XkxK4oQ 4dzZc5atCzPgcAbdvrjvAtW8bpF8lKne9cZje6P6fm02PN37p0NCM4Nx/5p+2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646070639; a=rsa-sha256; cv=none; b=r8PcH29mqpDLt3jqIDdhHtzMaxZHmBQouzXxJCzOBUFdk/w0Y0lFfa/5DuVLU3EWAppHxK 2w57MNGvQAF6qXvY43DELsmH5Lvuxkjiy0jeL7QlGVh5vZfyLQC8JqMuBYvDSd8TiLAOsX maUSwfPXdxgoIePlRQpOxSVk0cQoVyJW5vIab4vqzuzlOnPf+mfP+ZMtYpSGX+2izkZF/u 594pGK/QikLQ3HfrV5gQCY9anWGlHYL/0cwTmw4I6AzVApAsybIXq5ZNEKrGz7zEcEkoUn dhyzPd+SPvFjaWpa7hDxC62cQkPhurrC4b7CykJUHkQX63LH0PaEaiHN2hggYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=dbd330fc1c387542b773475fe55b28e3f7abbdad commit dbd330fc1c387542b773475fe55b28e3f7abbdad Author: Warner Losh AuthorDate: 2022-02-28 17:14:04 +0000 Commit: Warner Losh CommitDate: 2022-02-28 17:14:34 +0000 bwn: Remove useless variable type is a write-only variable. Eliminate it. Sponsored by: Netflix --- sys/dev/bwn/if_bwn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c index ecec524c07d4..1dc38dbcae6c 100644 --- a/sys/dev/bwn/if_bwn.c +++ b/sys/dev/bwn/if_bwn.c @@ -5987,7 +5987,7 @@ bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr) struct ieee80211_node *ni; struct ieee80211com *ic = &sc->sc_ic; uint32_t macstat; - int padding, rate, rssi = 0, noise = 0, type; + int padding, rate, rssi = 0, noise = 0; uint16_t phytype, phystat0, phystat3, chanstat; unsigned char *mp = mtod(m, unsigned char *); @@ -6101,10 +6101,10 @@ bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr) ni = ieee80211_find_rxnode(ic, wh); if (ni != NULL) { - type = ieee80211_input(ni, m, rssi, noise); + ieee80211_input(ni, m, rssi, noise); ieee80211_free_node(ni); } else - type = ieee80211_input_all(ic, m, rssi, noise); + ieee80211_input_all(ic, m, rssi, noise); BWN_LOCK(sc); return;