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

staging: rtl8723au: Remove unused + write-only entries from struct evt_priv

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 593ac88e
...@@ -192,9 +192,6 @@ static void rtw_irq_work(struct work_struct *work); ...@@ -192,9 +192,6 @@ static void rtw_irq_work(struct work_struct *work);
u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv) u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
{ {
atomic_set(&pevtpriv->event_seq, 0);
pevtpriv->evt_done_cnt = 0;
pevtpriv->wq = alloc_workqueue("rtl8723au_evt", 0, 1); pevtpriv->wq = alloc_workqueue("rtl8723au_evt", 0, 1);
INIT_WORK(&pevtpriv->irq_wk, rtw_irq_work); INIT_WORK(&pevtpriv->irq_wk, rtw_irq_work);
......
...@@ -6418,7 +6418,6 @@ u8 mlme_evt_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) ...@@ -6418,7 +6418,6 @@ u8 mlme_evt_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
u16 evt_sz; u16 evt_sz;
const uint *peventbuf; const uint *peventbuf;
void (*event_callback)(struct rtw_adapter *dev, u8 *pbuf); void (*event_callback)(struct rtw_adapter *dev, u8 *pbuf);
struct evt_priv *pevt_priv = &padapter->evtpriv;
peventbuf = (uint*)pbuf; peventbuf = (uint*)pbuf;
evt_sz = (u16)(*peventbuf&0xffff); evt_sz = (u16)(*peventbuf&0xffff);
...@@ -6439,15 +6438,11 @@ u8 mlme_evt_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) ...@@ -6439,15 +6438,11 @@ u8 mlme_evt_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
goto _abort_event_; goto _abort_event_;
} }
atomic_inc(&pevt_priv->event_seq);
peventbuf += 2; peventbuf += 2;
if (peventbuf) { if (peventbuf) {
event_callback = wlanevents[evt_code].event_callback; event_callback = wlanevents[evt_code].event_callback;
event_callback(padapter, (u8*)peventbuf); event_callback(padapter, (u8*)peventbuf);
pevt_priv->evt_done_cnt++;
} }
_abort_event_: _abort_event_:
......
...@@ -55,11 +55,6 @@ struct cmd_priv { ...@@ -55,11 +55,6 @@ struct cmd_priv {
struct evt_priv { struct evt_priv {
struct workqueue_struct *wq; struct workqueue_struct *wq;
struct work_struct irq_wk; struct work_struct irq_wk;
atomic_t event_seq;
u8 *evt_buf; /* shall be non-paged, and 4 bytes aligned */
u8 *evt_allocated_buf;
u32 evt_done_cnt;
}; };
#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
......
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