svn commit: r343680 - head/sys/dev/usb/wlan

Andriy Voskoboinyk avos at FreeBSD.org
Sat Feb 2 16:06:08 UTC 2019


Author: avos
Date: Sat Feb  2 16:06:06 2019
New Revision: 343680
URL: https://svnweb.freebsd.org/changeset/base/343680

Log:
  run(4): revert previous commit; there were no compiler warning
  (at least, from clang(1)).

Modified:
  head/sys/dev/usb/wlan/if_run.c

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Sat Feb  2 16:01:16 2019	(r343679)
+++ head/sys/dev/usb/wlan/if_run.c	Sat Feb  2 16:06:06 2019	(r343680)
@@ -2029,14 +2029,7 @@ run_read_eeprom(struct run_softc *sc)
 static struct ieee80211_node *
 run_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
 {
-	struct run_node *rn;
-
-	rn = malloc(sizeof (struct run_node), M_80211_NODE, M_NOWAIT | M_ZERO);
-
-	if (rn == NULL)
-		return (NULL);
-
-	return (&rn->ni);
+	return malloc(sizeof (struct run_node), M_DEVBUF, M_NOWAIT | M_ZERO);
 }
 
 static int


More information about the svn-src-all mailing list