Commit df353f61 authored by James A Shackleford's avatar James A Shackleford Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: remove wrapper function _queue_empty



_queue_empty is an inline wrapper around list_empty.  This patch removes this
wrapper function and instead calls list_empty directly.

Signed-off-by: default avatarJames A Shackleford <shack@linux.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e99a428a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -108,11 +108,6 @@ static inline u32 _down_sema(struct semaphore *sema)
		return _SUCCESS;
}

static inline u32 _queue_empty(struct  __queue *pqueue)
{
	return list_empty(&(pqueue->queue));
}

static inline u32 end_of_queue_search(struct list_head *head,
		struct list_head *plist)
{
+1 −1
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@ int r8712_cmd_thread(void *context)
				}
			}
			r8712_free_cmd_obj(pcmd);
			if (_queue_empty(&(pcmdpriv->cmd_queue))) {
			if (list_empty(&pcmdpriv->cmd_queue.queue)) {
				r8712_unregister_cmd_alive(padapter);
				continue;
			} else
+1 −1
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ union recv_frame *r8712_recvframe_chk_defrag(struct _adapter *padapter,
		if (pdefrag_q != NULL) {
			if (fragnum == 0) {
				/*the first fragment*/
				if (_queue_empty(pdefrag_q) == false) {
				if (!list_empty(&pdefrag_q->queue)) {
					/*free current defrag_q */
					r8712_free_recvframe_queue(pdefrag_q,
							     pfree_recv_queue);
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ static struct xmit_frame *dequeue_xframe_ex(struct xmit_priv *pxmitpriv,
			}
			sta_plist = sta_plist->next;
			/*Remove sta node when there are no pending packets.*/
			if (_queue_empty(pframe_queue)) {
			if (list_empty(&pframe_queue->queue)) {
				/* must be done after sta_plist->next
				 * and before break
				 */
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ static u8 do_join(struct _adapter *padapter)

	/* adhoc mode will start with an empty queue, but skip checking */
	if (!check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) &&
	    _queue_empty(queue)) {
	    list_empty(&queue->queue)) {
		if (pmlmepriv->fw_state & _FW_UNDER_LINKING)
			pmlmepriv->fw_state ^= _FW_UNDER_LINKING;
		/* when set_ssid/set_bssid for do_join(), but scanning queue
Loading