diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-05-30 16:49:56 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-06-02 14:03:02 -0400 |
commit | a023b710ea918b966987f1081fa68369fc1596c9 (patch) | |
tree | b3bc1fb9a606868e093db0f723d71d138c184b54 | |
parent | a715c7ddd65a1a3b2839b8ebd759bb2d361f7675 (diff) |
ath10k: remove unused len variables from wmi process rx functions
These len variables are not used anywhere.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 4b7782a529ac..6f83cae57655 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2106,7 +2106,6 @@ static void ath10k_wmi_main_process_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2106 | { | 2106 | { |
2107 | struct wmi_cmd_hdr *cmd_hdr; | 2107 | struct wmi_cmd_hdr *cmd_hdr; |
2108 | enum wmi_event_id id; | 2108 | enum wmi_event_id id; |
2109 | u16 len; | ||
2110 | 2109 | ||
2111 | cmd_hdr = (struct wmi_cmd_hdr *)skb->data; | 2110 | cmd_hdr = (struct wmi_cmd_hdr *)skb->data; |
2112 | id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID); | 2111 | id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID); |
@@ -2114,8 +2113,6 @@ static void ath10k_wmi_main_process_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2114 | if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) | 2113 | if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) |
2115 | return; | 2114 | return; |
2116 | 2115 | ||
2117 | len = skb->len; | ||
2118 | |||
2119 | trace_ath10k_wmi_event(id, skb->data, skb->len); | 2116 | trace_ath10k_wmi_event(id, skb->data, skb->len); |
2120 | 2117 | ||
2121 | switch (id) { | 2118 | switch (id) { |
@@ -2225,7 +2222,6 @@ static void ath10k_wmi_10x_process_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2225 | { | 2222 | { |
2226 | struct wmi_cmd_hdr *cmd_hdr; | 2223 | struct wmi_cmd_hdr *cmd_hdr; |
2227 | enum wmi_10x_event_id id; | 2224 | enum wmi_10x_event_id id; |
2228 | u16 len; | ||
2229 | 2225 | ||
2230 | cmd_hdr = (struct wmi_cmd_hdr *)skb->data; | 2226 | cmd_hdr = (struct wmi_cmd_hdr *)skb->data; |
2231 | id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID); | 2227 | id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID); |
@@ -2233,8 +2229,6 @@ static void ath10k_wmi_10x_process_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2233 | if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) | 2229 | if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) |
2234 | return; | 2230 | return; |
2235 | 2231 | ||
2236 | len = skb->len; | ||
2237 | |||
2238 | trace_ath10k_wmi_event(id, skb->data, skb->len); | 2232 | trace_ath10k_wmi_event(id, skb->data, skb->len); |
2239 | 2233 | ||
2240 | switch (id) { | 2234 | switch (id) { |