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>
This commit is contained in:
parent
a715c7ddd6
commit
a023b710ea
1 changed files with 0 additions and 6 deletions
|
@ -2106,7 +2106,6 @@ static void ath10k_wmi_main_process_rx(struct ath10k *ar, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct wmi_cmd_hdr *cmd_hdr;
|
struct wmi_cmd_hdr *cmd_hdr;
|
||||||
enum wmi_event_id id;
|
enum wmi_event_id id;
|
||||||
u16 len;
|
|
||||||
|
|
||||||
cmd_hdr = (struct wmi_cmd_hdr *)skb->data;
|
cmd_hdr = (struct wmi_cmd_hdr *)skb->data;
|
||||||
id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID);
|
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)
|
||||||
if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL)
|
if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
len = skb->len;
|
|
||||||
|
|
||||||
trace_ath10k_wmi_event(id, skb->data, skb->len);
|
trace_ath10k_wmi_event(id, skb->data, skb->len);
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
|
@ -2225,7 +2222,6 @@ static void ath10k_wmi_10x_process_rx(struct ath10k *ar, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct wmi_cmd_hdr *cmd_hdr;
|
struct wmi_cmd_hdr *cmd_hdr;
|
||||||
enum wmi_10x_event_id id;
|
enum wmi_10x_event_id id;
|
||||||
u16 len;
|
|
||||||
|
|
||||||
cmd_hdr = (struct wmi_cmd_hdr *)skb->data;
|
cmd_hdr = (struct wmi_cmd_hdr *)skb->data;
|
||||||
id = MS(__le32_to_cpu(cmd_hdr->cmd_id), WMI_CMD_HDR_CMD_ID);
|
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)
|
||||||
if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL)
|
if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
len = skb->len;
|
|
||||||
|
|
||||||
trace_ath10k_wmi_event(id, skb->data, skb->len);
|
trace_ath10k_wmi_event(id, skb->data, skb->len);
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue