correct comparison for null ptr

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
Sam Leffler 2005-03-16 20:42:00 +00:00
parent 6edf09a6e9
commit bd40429e3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143716

View File

@ -229,7 +229,7 @@ ieee80211_classify(struct ieee80211com *ic, struct mbuf *m, struct ieee80211_nod
v_wme_ac = 0; v_wme_ac = 0;
if (ni->ni_vlan != 0) { if (ni->ni_vlan != 0) {
struct m_tag *mtag = VLAN_OUTPUT_TAG(ic->ic_ifp, m); struct m_tag *mtag = VLAN_OUTPUT_TAG(ic->ic_ifp, m);
if (mtag != NULL) { if (mtag == NULL) {
IEEE80211_NODE_STAT(ni, tx_novlantag); IEEE80211_NODE_STAT(ni, tx_novlantag);
return 1; return 1;
} }