Skip to content

Commit

Permalink
rt2x00: remove queue_entry from skbdesc
Browse files Browse the repository at this point in the history
queue_entry field of skbdesc is not read any more, remove it to allow
skbdesc contain other data.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Stanislaw Gruszka authored and Kalle Valo committed Feb 8, 2017
1 parent 2ceb813 commit cf81db3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ struct sk_buff *rt2x00queue_alloc_rxskb(struct queue_entry *entry, gfp_t gfp)
*/
skbdesc = get_skb_frame_desc(skb);
memset(skbdesc, 0, sizeof(*skbdesc));
skbdesc->entry = entry;

if (rt2x00_has_cap_flag(rt2x00dev, REQUIRE_DMA)) {
dma_addr_t skb_dma;
Expand Down Expand Up @@ -689,7 +688,6 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb,
goto out;
}

skbdesc->entry = entry;
entry->skb = skb;

/*
Expand Down Expand Up @@ -774,7 +772,6 @@ int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev,
*/
skbdesc = get_skb_frame_desc(intf->beacon->skb);
memset(skbdesc, 0, sizeof(*skbdesc));
skbdesc->entry = intf->beacon;

/*
* Send beacon to hardware.
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wireless/ralink/rt2x00/rt2x00queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ struct skb_frame_desc {
__le32 iv[2];

dma_addr_t skb_dma;

struct queue_entry *entry;
};

/**
Expand Down

0 comments on commit cf81db3

Please sign in to comment.