mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 01:38:57 +00:00
remove unnecessary null ptr check
Coverity ID: 173911
This commit is contained in:
parent
3ab4f00990
commit
7cb3a39dc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160905
@ -2842,8 +2842,7 @@ rt2560_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
|
||||
return 0;
|
||||
bad:
|
||||
ifp->if_oerrors++;
|
||||
if (ni != NULL)
|
||||
ieee80211_free_node(ni);
|
||||
ieee80211_free_node(ni);
|
||||
RAL_UNLOCK(sc);
|
||||
return EIO; /* XXX */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user