Commit ab033fdb authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Fold _rtw_init_evt_priv23a() into rtw_init_evt_priv23a()

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fc8ae7e5
......@@ -215,10 +215,9 @@ int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv)
/* forward definition */
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 */
atomic_set(&pevtpriv->event_seq, 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_queue = rtw_cbuf_alloc23a(C2H_QUEUE_MAX_LEN + 1);
return res;
}
u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
{
int res;
res = _rtw_init_evt_priv23a(pevtpriv);
return res;
return _SUCCESS;
}
void rtw_free_evt_priv23a(struct evt_priv *pevtpriv)
......
......@@ -18,7 +18,6 @@
#include <osdep_service.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);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment