git: dbd330fc1c38 - main - bwn: Remove useless variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 17:50:39 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=dbd330fc1c387542b773475fe55b28e3f7abbdad commit dbd330fc1c387542b773475fe55b28e3f7abbdad Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-02-28 17:14:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> 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;