Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Small cleanup. NFCI.



details:   https://anonhg.NetBSD.org/src-all/rev/09aaf7d8b8f5
branches:  trunk
changeset: 362671:09aaf7d8b8f5
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Wed May 13 17:23:57 2020 +1000

description:
Small cleanup. NFCI.

diffstat:

 sys/dev/usb/if_urtwn.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r 530c80a0b2a0 -r 09aaf7d8b8f5 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Wed May 13 12:45:22 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Wed May 13 17:23:57 2020 +1000
@@ -2967,9 +2967,8 @@
        ni = ieee80211_find_rxnode(ic, (struct ieee80211_frame_min *)wh);
 
        if (ni != NULL) {
-               if (ni->ni_vap != NULL) {
-
-               } else {
+               if (ni->ni_vap == NULL) {
+                       ieee80211_free_node(ni);
                        splx(s);
                        return;
                }



Home | Main Index | Thread Index | Old Index