From 0796482dd1ed16738334ddd3ccb0374a952cf9bd Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 16 Mar 2005 20:35:23 +0000 Subject: [PATCH] kill dead code Noticed by: Coverity Prevent analysis tool --- sys/net80211/ieee80211_input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 5f5a8251ad5f..df5874aa732c 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -237,8 +237,7 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m, * discovered member of the IBSS. */ ni = ieee80211_fakeup_adhoc_node(&ic->ic_sta, - type == IEEE80211_FC0_TYPE_CTL ? - wh->i_addr1 : wh->i_addr2); + wh->i_addr2); if (ni == NULL) { /* NB: stat kept for alloc failure */ goto err;