staging: r8188eu: remove _rtw_dequeue_network()
Function _rtw_dequeue_network() is not used, remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210922200420.9693-10-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
1e5b9b2c6d
Коммит
1387b4fef6
|
@ -142,25 +142,6 @@ exit:
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlan_network *_rtw_dequeue_network(struct __queue *queue)
|
|
||||||
{
|
|
||||||
struct wlan_network *pnetwork;
|
|
||||||
|
|
||||||
spin_lock_bh(&queue->lock);
|
|
||||||
|
|
||||||
if (list_empty(&queue->queue)) {
|
|
||||||
pnetwork = NULL;
|
|
||||||
} else {
|
|
||||||
pnetwork = container_of((&queue->queue)->next, struct wlan_network, list);
|
|
||||||
|
|
||||||
list_del_init(&pnetwork->list);
|
|
||||||
}
|
|
||||||
|
|
||||||
spin_unlock_bh(&queue->lock);
|
|
||||||
|
|
||||||
return pnetwork;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)/* _queue *free_queue) */
|
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)/* _queue *free_queue) */
|
||||||
{
|
{
|
||||||
struct wlan_network *pnetwork;
|
struct wlan_network *pnetwork;
|
||||||
|
|
|
@ -586,8 +586,6 @@ void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
|
||||||
|
|
||||||
int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);
|
int _rtw_enqueue_network(struct __queue *queue, struct wlan_network *pnetwork);
|
||||||
|
|
||||||
struct wlan_network *_rtw_dequeue_network(struct __queue *queue);
|
|
||||||
|
|
||||||
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv);
|
struct wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv);
|
||||||
|
|
||||||
void _rtw_free_network(struct mlme_priv *pmlmepriv,
|
void _rtw_free_network(struct mlme_priv *pmlmepriv,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче