run(4): revert previous commit; there were no compiler warning
(at least, from clang(1)).
This commit is contained in:
parent
4933e63019
commit
9d8532f011
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user