diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-05-11 17:51:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-12 16:41:43 -0400 |
commit | 878f7045d8ae24f5a9e3a8a7ee5c33d30c30a553 (patch) | |
tree | e096e78049d24e4bf18670969fb035c0da7734d3 /drivers/net | |
parent | 2cb1ba153787e195c62eafc2e794b25509fdd26d (diff) |
rt2x00: Consistently name skb frame descriptor skbdesc.
The skb frame descriptor is called everywhere skbdesc, except in one
place in rt2x00debug_dump_frame. Change that occurence to have
consistent naming.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index 70c04c282efc..9e2eed51e167 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -155,7 +155,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
155 | enum rt2x00_dump_type type, struct sk_buff *skb) | 155 | enum rt2x00_dump_type type, struct sk_buff *skb) |
156 | { | 156 | { |
157 | struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; | 157 | struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; |
158 | struct skb_frame_desc *desc = get_skb_frame_desc(skb); | 158 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); |
159 | struct sk_buff *skbcopy; | 159 | struct sk_buff *skbcopy; |
160 | struct rt2x00dump_hdr *dump_hdr; | 160 | struct rt2x00dump_hdr *dump_hdr; |
161 | struct timeval timestamp; | 161 | struct timeval timestamp; |
@@ -170,7 +170,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
170 | return; | 170 | return; |
171 | } | 171 | } |
172 | 172 | ||
173 | skbcopy = alloc_skb(sizeof(*dump_hdr) + desc->desc_len + skb->len, | 173 | skbcopy = alloc_skb(sizeof(*dump_hdr) + skbdesc->desc_len + skb->len, |
174 | GFP_ATOMIC); | 174 | GFP_ATOMIC); |
175 | if (!skbcopy) { | 175 | if (!skbcopy) { |
176 | DEBUG(rt2x00dev, "Failed to copy skb for dump.\n"); | 176 | DEBUG(rt2x00dev, "Failed to copy skb for dump.\n"); |
@@ -180,18 +180,19 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
180 | dump_hdr = (struct rt2x00dump_hdr *)skb_put(skbcopy, sizeof(*dump_hdr)); | 180 | dump_hdr = (struct rt2x00dump_hdr *)skb_put(skbcopy, sizeof(*dump_hdr)); |
181 | dump_hdr->version = cpu_to_le32(DUMP_HEADER_VERSION); | 181 | dump_hdr->version = cpu_to_le32(DUMP_HEADER_VERSION); |
182 | dump_hdr->header_length = cpu_to_le32(sizeof(*dump_hdr)); | 182 | dump_hdr->header_length = cpu_to_le32(sizeof(*dump_hdr)); |
183 | dump_hdr->desc_length = cpu_to_le32(desc->desc_len); | 183 | dump_hdr->desc_length = cpu_to_le32(skbdesc->desc_len); |
184 | dump_hdr->data_length = cpu_to_le32(skb->len); | 184 | dump_hdr->data_length = cpu_to_le32(skb->len); |
185 | dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt); | 185 | dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt); |
186 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); | 186 | dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); |
187 | dump_hdr->chip_rev = cpu_to_le16(rt2x00dev->chip.rev); | 187 | dump_hdr->chip_rev = cpu_to_le16(rt2x00dev->chip.rev); |
188 | dump_hdr->type = cpu_to_le16(type); | 188 | dump_hdr->type = cpu_to_le16(type); |
189 | dump_hdr->queue_index = desc->entry->queue->qid; | 189 | dump_hdr->queue_index = skbdesc->entry->queue->qid; |
190 | dump_hdr->entry_index = desc->entry->entry_idx; | 190 | dump_hdr->entry_index = skbdesc->entry->entry_idx; |
191 | dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec); | 191 | dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec); |
192 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); | 192 | dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); |
193 | 193 | ||
194 | memcpy(skb_put(skbcopy, desc->desc_len), desc->desc, desc->desc_len); | 194 | memcpy(skb_put(skbcopy, skbdesc->desc_len), skbdesc->desc, |
195 | skbdesc->desc_len); | ||
195 | memcpy(skb_put(skbcopy, skb->len), skb->data, skb->len); | 196 | memcpy(skb_put(skbcopy, skb->len), skb->data, skb->len); |
196 | 197 | ||
197 | skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); | 198 | skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); |