diff options
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 74a269ebbeb..5037c8b2b41 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -850,7 +850,7 @@ static int fill_ctrlset(struct zd_mac *mac, | |||
850 | * control block of the skbuff will be initialized. If necessary the incoming | 850 | * control block of the skbuff will be initialized. If necessary the incoming |
851 | * mac80211 queues will be stopped. | 851 | * mac80211 queues will be stopped. |
852 | */ | 852 | */ |
853 | static int zd_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 853 | static void zd_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
854 | { | 854 | { |
855 | struct zd_mac *mac = zd_hw_mac(hw); | 855 | struct zd_mac *mac = zd_hw_mac(hw); |
856 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 856 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
@@ -865,11 +865,10 @@ static int zd_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
865 | r = zd_usb_tx(&mac->chip.usb, skb); | 865 | r = zd_usb_tx(&mac->chip.usb, skb); |
866 | if (r) | 866 | if (r) |
867 | goto fail; | 867 | goto fail; |
868 | return 0; | 868 | return; |
869 | 869 | ||
870 | fail: | 870 | fail: |
871 | dev_kfree_skb(skb); | 871 | dev_kfree_skb(skb); |
872 | return 0; | ||
873 | } | 872 | } |
874 | 873 | ||
875 | /** | 874 | /** |