staging: rtl8723au: Fold _rtw_init_evt_priv23a() into rtw_init_evt_priv23a()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc8ae7e548
commit
ab033fdb26
|
@ -215,10 +215,9 @@ exit:
|
||||||
/* forward definition */
|
/* forward definition */
|
||||||
|
|
||||||
static void c2h_wk_callback(struct work_struct *work);
|
static void c2h_wk_callback(struct work_struct *work);
|
||||||
int _rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
|
|
||||||
{
|
|
||||||
int res = _SUCCESS;
|
|
||||||
|
|
||||||
|
u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
|
||||||
|
{
|
||||||
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
|
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
|
||||||
atomic_set(&pevtpriv->event_seq, 0);
|
atomic_set(&pevtpriv->event_seq, 0);
|
||||||
pevtpriv->evt_done_cnt = 0;
|
pevtpriv->evt_done_cnt = 0;
|
||||||
|
@ -227,16 +226,7 @@ int _rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
|
||||||
pevtpriv->c2h_wk_alive = false;
|
pevtpriv->c2h_wk_alive = false;
|
||||||
pevtpriv->c2h_queue = rtw_cbuf_alloc23a(C2H_QUEUE_MAX_LEN + 1);
|
pevtpriv->c2h_queue = rtw_cbuf_alloc23a(C2H_QUEUE_MAX_LEN + 1);
|
||||||
|
|
||||||
return res;
|
return _SUCCESS;
|
||||||
}
|
|
||||||
|
|
||||||
u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
|
|
||||||
{
|
|
||||||
int res;
|
|
||||||
|
|
||||||
res = _rtw_init_evt_priv23a(pevtpriv);
|
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_free_evt_priv23a(struct evt_priv *pevtpriv)
|
void rtw_free_evt_priv23a(struct evt_priv *pevtpriv)
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <osdep_service.h>
|
#include <osdep_service.h>
|
||||||
#include <drv_types.h>
|
#include <drv_types.h>
|
||||||
|
|
||||||
int _rtw_init_evt_priv23a(struct evt_priv *pevtpriv);
|
|
||||||
int _rtw_enqueue_cmd23a(struct rtw_queue *queue, struct cmd_obj *obj);
|
int _rtw_enqueue_cmd23a(struct rtw_queue *queue, struct cmd_obj *obj);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue