caller must guarantee the atomic context.
 Otherwise, there will be racing condition.
 */
-static inline u32 is_list_empty(struct list_head *phead)
-{
-       if (list_empty(phead))
-               return true;
-       else
-               return false;
-}
-
 static inline void list_insert_tail(struct list_head *plist,
                                    struct list_head *phead)
 {
 
 static inline u32 _queue_empty(struct  __queue *pqueue)
 {
-       return is_list_empty(&(pqueue->queue));
+       return list_empty(&(pqueue->queue));
 }
 
 static inline u32 end_of_queue_search(struct list_head *head,
 
        plist = get_next(phead);
        /* Handling some condition for forced indicate case.*/
        if (bforced == true) {
-               if (is_list_empty(phead))
+               if (list_empty(phead))
                        return true;
                else {
                        prframe = LIST_CONTAINOR(plist, union recv_frame, u);
        }
        /* Prepare indication list and indication.
         * Check if there is any packet need indicate. */
-       while (!is_list_empty(phead)) {
+       while (!list_empty(phead)) {
                prframe = LIST_CONTAINOR(plist, union recv_frame, u);
                pattrib = &prframe->u.hdr.attrib;
                if (!SN_LESS(preorder_ctrl->indicate_seq, pattrib->seq_num)) {
 
        struct cmd_obj *obj;
 
        spin_lock_irqsave(&(queue->lock), irqL);
-       if (is_list_empty(&(queue->queue)))
+       if (list_empty(&(queue->queue)))
                obj = NULL;
        else {
                obj = LIST_CONTAINOR(get_next(&(queue->queue)),
 
        ptxservq = get_sta_pending(padapter, &pstapending,
                   psta, pattrib->priority);
        spin_lock_irqsave(&pstapending->lock, irqL0);
-       if (is_list_empty(&ptxservq->tx_pending))
+       if (list_empty(&ptxservq->tx_pending))
                list_insert_tail(&ptxservq->tx_pending,
                                 get_list_head(pstapending));
        list_insert_tail(&pxmitframe->list,