mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31:22 +03:00
Cleanup extraneous ieee80211_dev_kfree_skb checks
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3622 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
a192279dd6
commit
b9be39d736
@ -3740,8 +3740,7 @@ ath_mgtstart(struct ieee80211com *ic, struct sk_buff *skb)
|
|||||||
sc->sc_stats.ast_tx_mgmt++;
|
sc->sc_stats.ast_tx_mgmt++;
|
||||||
return 0;
|
return 0;
|
||||||
bad:
|
bad:
|
||||||
if (skb)
|
ieee80211_dev_kfree_skb(&skb);
|
||||||
ieee80211_dev_kfree_skb(&skb);
|
|
||||||
ath_return_txbuf(sc, &bf);
|
ath_return_txbuf(sc, &bf);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
@ -12600,8 +12599,7 @@ cleanup_ath_buf(struct ath_softc *sc, struct ath_buf *bf, int direction)
|
|||||||
bf->bf_desc->ds_data = 0;
|
bf->bf_desc->ds_data = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bf->bf_skb != NULL)
|
ieee80211_dev_kfree_skb_list(&bf->bf_skb);
|
||||||
ieee80211_dev_kfree_skb_list(&bf->bf_skb);
|
|
||||||
|
|
||||||
bf->bf_taken_at_line = 0;
|
bf->bf_taken_at_line = 0;
|
||||||
bf->bf_taken_at_func = NULL;
|
bf->bf_taken_at_func = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user