diff options
author | John Daiker <daikerjohn@gmail.com> | 2008-10-17 15:16:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:40 -0400 |
commit | 558875112c28c7b2744a92c9836c256dd57bc5b6 (patch) | |
tree | bf68c8283caebed06c453683ac2cd797d7868342 | |
parent | 0bbac08f0a23898787978c0b405474e453e9824c (diff) |
rt2x00: reduce checkpatch.pl errors
A few changes to reduce checkpatch.pl errors in the rt2x00 driver. For
the most part, I only fixed cosmetic things, and left the actual 'code
flow' untouched (hopefully)!
Diff is against wireless-testing HEAD.
Signed-off-by: John Daiker <daikerjohn@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index 5cf4c859e39..96bc0a0336f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -285,7 +285,7 @@ exit: | |||
285 | } | 285 | } |
286 | 286 | ||
287 | static unsigned int rt2x00debug_poll_queue_dump(struct file *file, | 287 | static unsigned int rt2x00debug_poll_queue_dump(struct file *file, |
288 | poll_table *wait) | 288 | poll_table *wait) |
289 | { | 289 | { |
290 | struct rt2x00debug_intf *intf = file->private_data; | 290 | struct rt2x00debug_intf *intf = file->private_data; |
291 | 291 | ||
@@ -377,7 +377,7 @@ static ssize_t rt2x00debug_read_crypto_stats(struct file *file, | |||
377 | if (*offset) | 377 | if (*offset) |
378 | return 0; | 378 | return 0; |
379 | 379 | ||
380 | data = kzalloc((1 + CIPHER_MAX)* MAX_LINE_LENGTH, GFP_KERNEL); | 380 | data = kzalloc((1 + CIPHER_MAX) * MAX_LINE_LENGTH, GFP_KERNEL); |
381 | if (!data) | 381 | if (!data) |
382 | return -ENOMEM; | 382 | return -ENOMEM; |
383 | 383 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 070786ebd07..e9f4261054b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -570,7 +570,7 @@ void rt2x00queue_index_inc(struct data_queue *queue, enum queue_index index) | |||
570 | queue->length++; | 570 | queue->length++; |
571 | } else if (index == Q_INDEX_DONE) { | 571 | } else if (index == Q_INDEX_DONE) { |
572 | queue->length--; | 572 | queue->length--; |
573 | queue->count ++; | 573 | queue->count++; |
574 | } | 574 | } |
575 | 575 | ||
576 | spin_unlock_irqrestore(&queue->lock, irqflags); | 576 | spin_unlock_irqrestore(&queue->lock, irqflags); |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 08eb896ae36..921dcd5064d 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1934,7 +1934,7 @@ static int rt61pci_agc_to_rssi(struct rt2x00_dev *rt2x00dev, int rxd_w1) | |||
1934 | } | 1934 | } |
1935 | 1935 | ||
1936 | static void rt61pci_fill_rxdone(struct queue_entry *entry, | 1936 | static void rt61pci_fill_rxdone(struct queue_entry *entry, |
1937 | struct rxdone_entry_desc *rxdesc) | 1937 | struct rxdone_entry_desc *rxdesc) |
1938 | { | 1938 | { |
1939 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; | 1939 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; |
1940 | struct queue_entry_priv_pci *entry_priv = entry->priv_data; | 1940 | struct queue_entry_priv_pci *entry_priv = entry->priv_data; |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 7f89782a34e..69a4931a2fd 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1685,7 +1685,7 @@ static int rt73usb_agc_to_rssi(struct rt2x00_dev *rt2x00dev, int rxd_w1) | |||
1685 | } | 1685 | } |
1686 | 1686 | ||
1687 | static void rt73usb_fill_rxdone(struct queue_entry *entry, | 1687 | static void rt73usb_fill_rxdone(struct queue_entry *entry, |
1688 | struct rxdone_entry_desc *rxdesc) | 1688 | struct rxdone_entry_desc *rxdesc) |
1689 | { | 1689 | { |
1690 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; | 1690 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; |
1691 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); | 1691 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); |