From b9be39d73666457c6b52956c8e8015d05561ff8f Mon Sep 17 00:00:00 2001 From: mentor Date: Sat, 10 May 2008 06:07:18 +0000 Subject: [PATCH] Cleanup extraneous ieee80211_dev_kfree_skb checks git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3622 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index c9262b5..5d2c0e4 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -3740,8 +3740,7 @@ ath_mgtstart(struct ieee80211com *ic, struct sk_buff *skb) sc->sc_stats.ast_tx_mgmt++; return 0; bad: - if (skb) - ieee80211_dev_kfree_skb(&skb); + ieee80211_dev_kfree_skb(&skb); ath_return_txbuf(sc, &bf); 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; } - 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_func = NULL; -- 2.35.1