diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2011-03-03 13:47:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-04 14:06:49 -0500 |
commit | 557d99a26945e21992f693787334143d0355f60a (patch) | |
tree | 0b2af6d2a5b6f642caa4bcb3820fc3568a9ab175 /drivers/net/wireless | |
parent | a24408307e930e21912e82c125648400041d66fb (diff) |
rt2x00: Remove unused rt2x00queue_get_queue function.
Now that all accesses to the data_queue structures is done via the specialized
rt2x00queue_get_tx_queue function or via direct accesses, there is no
need for the rt2x00queue_get_queue function anymore, so remove it.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 19 |
2 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 6a88c56b43ff..a3940d7300a4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -1083,14 +1083,6 @@ rt2x00queue_get_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
1083 | } | 1083 | } |
1084 | 1084 | ||
1085 | /** | 1085 | /** |
1086 | * rt2x00queue_get_queue - Convert queue index to queue pointer | ||
1087 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
1088 | * @queue: rt2x00 queue index (see &enum data_queue_qid). | ||
1089 | */ | ||
1090 | struct data_queue *rt2x00queue_get_queue(struct rt2x00_dev *rt2x00dev, | ||
1091 | const enum data_queue_qid queue); | ||
1092 | |||
1093 | /** | ||
1094 | * rt2x00queue_get_entry - Get queue entry where the given index points to. | 1086 | * rt2x00queue_get_entry - Get queue entry where the given index points to. |
1095 | * @queue: Pointer to &struct data_queue from where we obtain the entry. | 1087 | * @queue: Pointer to &struct data_queue from where we obtain the entry. |
1096 | * @index: Index identifier for obtaining the correct index. | 1088 | * @index: Index identifier for obtaining the correct index. |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index fcaacc6dc0f1..4b3c70eeef1f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -705,25 +705,6 @@ void rt2x00queue_for_each_entry(struct data_queue *queue, | |||
705 | } | 705 | } |
706 | EXPORT_SYMBOL_GPL(rt2x00queue_for_each_entry); | 706 | EXPORT_SYMBOL_GPL(rt2x00queue_for_each_entry); |
707 | 707 | ||
708 | struct data_queue *rt2x00queue_get_queue(struct rt2x00_dev *rt2x00dev, | ||
709 | const enum data_queue_qid queue) | ||
710 | { | ||
711 | if (queue == QID_RX) | ||
712 | return rt2x00dev->rx; | ||
713 | |||
714 | if (queue < rt2x00dev->ops->tx_queues && rt2x00dev->tx) | ||
715 | return &rt2x00dev->tx[queue]; | ||
716 | |||
717 | if (queue == QID_BEACON) | ||
718 | return rt2x00dev->bcn; | ||
719 | |||
720 | if (queue == QID_ATIM) | ||
721 | return rt2x00dev->atim; | ||
722 | |||
723 | return NULL; | ||
724 | } | ||
725 | EXPORT_SYMBOL_GPL(rt2x00queue_get_queue); | ||
726 | |||
727 | struct queue_entry *rt2x00queue_get_entry(struct data_queue *queue, | 708 | struct queue_entry *rt2x00queue_get_entry(struct data_queue *queue, |
728 | enum queue_index index) | 709 | enum queue_index index) |
729 | { | 710 | { |