rtl8188eu: Remove wrapper around INIT_LIST_HEAD()

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-12-12 23:13:40 -06:00
parent 609fff0d67
commit 9ad78a5b0d
14 changed files with 38 additions and 44 deletions

View file

@ -4875,7 +4875,7 @@ static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid)
pcmd->rsp = NULL;
pcmd->rspsz = 0;
_rtw_init_listhead(&pcmd->list);
INIT_LIST_HEAD(&pcmd->list);
res = rtw_enqueue_cmd(pcmdpriv, pcmd);

View file

@ -123,11 +123,6 @@ int _rtw_memcmp(void *dst, void *src, u32 sz)
return false;
}
void _rtw_init_listhead(struct list_head *list)
{
INIT_LIST_HEAD(list);
}
/*
For the following list_xxx operations,
caller must guarantee the atomic context.
@ -188,7 +183,7 @@ void _rtw_spinlock_free(spinlock_t *plock)
void _rtw_init_queue(struct __queue *pqueue)
{
_rtw_init_listhead(&(pqueue->queue));
INIT_LIST_HEAD(&(pqueue->queue));
spin_lock_init(&(pqueue->lock));
}