ath6kl: Cleanup ath6kl_wmi_data_hdr_remove()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Sun, 14 Aug 2011 11:38:35 +0000 (17:08 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:10:53 +0000 (10:10 +0300)
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.h

index fb67c248f81593a74e82fbcf2f0dc08668a1c3d7..5d3d4b61ec894ae9b473c09e130fbeee2c7e9777 100644 (file)
@@ -1162,8 +1162,7 @@ void ath6kl_rx(struct htc_target *target, struct htc_packet *packet)
        seq_no = wmi_data_hdr_get_seqno(dhdr);
        meta_type = wmi_data_hdr_get_meta(dhdr);
        dot11_hdr = wmi_data_hdr_get_dot11(dhdr);
-
-       ath6kl_wmi_data_hdr_remove(ar->wmi, skb);
+       skb_pull(skb, sizeof(struct wmi_data_hdr));
 
        switch (meta_type) {
        case WMI_META_VERSION_1:
index f5aa33dd4c42da1127b462d75bb718336005aa1b..13b1a20cef0951a9450796f4597d9e33db6b6e7b 100644 (file)
@@ -376,16 +376,6 @@ int ath6kl_wmi_dot3_2_dix(struct sk_buff *skb)
        return 0;
 }
 
-int ath6kl_wmi_data_hdr_remove(struct wmi *wmi, struct sk_buff *skb)
-{
-       if (WARN_ON(skb == NULL))
-               return -EINVAL;
-
-       skb_pull(skb, sizeof(struct wmi_data_hdr));
-
-       return 0;
-}
-
 static void ath6kl_wmi_convert_bssinfo_hdr2_to_hdr(struct sk_buff *skb,
                                                   u8 *datap)
 {
index fe3ddce6408793e541c8fcaa1b712daa3ccd10cc..8fa5d6e46f0ee3e572923651fdb8be88f85af141 100644 (file)
@@ -1925,7 +1925,6 @@ int ath6kl_wmi_data_hdr_add(struct wmi *wmi, struct sk_buff *skb,
 
 int ath6kl_wmi_dot11_hdr_remove(struct wmi *wmi, struct sk_buff *skb);
 int ath6kl_wmi_dot3_2_dix(struct sk_buff *skb);
-int ath6kl_wmi_data_hdr_remove(struct wmi *wmi, struct sk_buff *skb);
 int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, struct sk_buff *skb,
                                       u32 layer2_priority, bool wmm_enabled,
                                       u8 *ac);