staging: wfx: drop unused function wfx_pending_requeue()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 26 May 2020 17:18:14 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 08:18:08 +0000 (10:18 +0200)
The function wfx_pending_requeue() is not used anymore since the
commit 7a44644c9379e ("staging: wfx: introduce
wfx_set_default_unicast_key()")

Fixes: 7a44644c9379e ("staging: wfx: introduce wfx_set_default_unicast_key()")
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200526171821.934581-4-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/queue.c
drivers/staging/wfx/queue.h

index 26b141cbd30353329b9a00f4f34737a5403de607..3248ecefda5644c7b46053b1a344a7f9bc19ee83 100644 (file)
@@ -143,19 +143,6 @@ void wfx_tx_queues_put(struct wfx_dev *wdev, struct sk_buff *skb)
                skb_queue_tail(&queue->normal, skb);
 }
 
-int wfx_pending_requeue(struct wfx_dev *wdev, struct sk_buff *skb)
-{
-       struct wfx_queue *queue = &wdev->tx_queue[skb_get_queue_mapping(skb)];
-
-       WARN_ON(skb_get_queue_mapping(skb) > 3);
-       WARN_ON(!atomic_read(&queue->pending_frames));
-
-       atomic_dec(&queue->pending_frames);
-       skb_unlink(skb, &wdev->tx_pending);
-       wfx_tx_queues_put(wdev, skb);
-       return 0;
-}
-
 void wfx_pending_drop(struct wfx_dev *wdev, struct sk_buff_head *dropped)
 {
        struct wfx_queue *queue;
index 0cbe5f4b06f2426feb5887d9179f6b63ab9d34aa..0c3b7244498e3e84ab113f895dec31e8d0873f2b 100644 (file)
@@ -38,7 +38,6 @@ void wfx_tx_queue_drop(struct wfx_dev *wdev, struct wfx_queue *queue,
 
 struct sk_buff *wfx_pending_get(struct wfx_dev *wdev, u32 packet_id);
 void wfx_pending_drop(struct wfx_dev *wdev, struct sk_buff_head *dropped);
-int wfx_pending_requeue(struct wfx_dev *wdev, struct sk_buff *skb);
 unsigned int wfx_pending_get_pkt_us_delay(struct wfx_dev *wdev,
                                          struct sk_buff *skb);
 void wfx_pending_dump_old_frames(struct wfx_dev *wdev, unsigned int limit_ms);