staging: r8188eu: Remove wrappers around spin_unlock_irqrestore
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 20 Dec 2013 04:38:37 +0000 (22:38 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 16:57:45 +0000 (08:57 -0800)
Again there are two - _exit_critical() and _exit_critical_ex().

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index 4561ffe87f73a77ab817f72046f349502bec34bd..d40ee08c4f013e7fd62fc5f0307fb18505456350 100644 (file)
@@ -157,7 +157,7 @@ _func_enter_;
 
        rtw_list_insert_tail(&obj->list, &queue->queue);
 
-       _exit_critical(&queue->lock, &irqL);
+       spin_unlock_irqrestore(&queue->lock, irqL);
 
 exit:
 
@@ -181,7 +181,7 @@ _func_enter_;
                rtw_list_delete(&obj->list);
        }
 
-       _exit_critical(&queue->lock, &irqL);
+       spin_unlock_irqrestore(&queue->lock, irqL);
 
 _func_exit_;
 
index bf8f6e5a777747351af3fe9798dca23ccbb12053..a1bd84c08d69866d01191bfced5f9c768de863e0 100644 (file)
@@ -331,7 +331,7 @@ int rtw_enqueue_recvbuf(struct recv_buf *precvbuf, struct __queue *queue)
        rtw_list_delete(&precvbuf->list);
 
        rtw_list_insert_tail(&precvbuf->list, get_list_head(queue));
-       _exit_critical_ex(&queue->lock, &irqL);
+       spin_unlock_irqrestore(&queue->lock, irqL);
        return _SUCCESS;
 }
 
@@ -355,7 +355,7 @@ struct recv_buf *rtw_dequeue_recvbuf (struct __queue *queue)
                rtw_list_delete(&precvbuf->list);
        }
 
-       _exit_critical_ex(&queue->lock, &irqL);
+       spin_unlock_irqrestore(&queue->lock, irqL);
 
        return precvbuf;
 }
index e805a4bdff3287e2d104a899ee3f4fb748c0e05c..bf01c304dd6d8b3a3d30026a2114ca5f82c630ba 100644 (file)
@@ -1299,7 +1299,7 @@ _func_enter_;
                }
        }
 
-       _exit_critical(&pfree_queue->lock, &irql);
+       spin_unlock_irqrestore(&pfree_queue->lock, irql);
 
 _func_exit_;
 
@@ -1323,7 +1323,7 @@ _func_enter_;
        rtw_list_insert_tail(&(pxmitbuf->list), get_list_head(pfree_queue));
        pxmitpriv->free_xmit_extbuf_cnt++;
 
-       _exit_critical(&pfree_queue->lock, &irql);
+       spin_unlock_irqrestore(&pfree_queue->lock, irql);
 
 _func_exit_;
 
@@ -1363,7 +1363,7 @@ _func_enter_;
                        rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
                }
        }
-       _exit_critical(&pfree_xmitbuf_queue->lock, &irql);
+       spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irql);
 
 _func_exit_;
 
@@ -1394,7 +1394,7 @@ _func_enter_;
                rtw_list_insert_tail(&(pxmitbuf->list), get_list_head(pfree_xmitbuf_queue));
 
                pxmitpriv->free_xmitbuf_cnt++;
-               _exit_critical(&pfree_xmitbuf_queue->lock, &irql);
+               spin_unlock_irqrestore(&pfree_xmitbuf_queue->lock, irql);
        }
 
 _func_exit_;
index 8fd93871547af52fe9406e900d4df8f492ec2656..a42c55402c63015efda7d71c4bc6c6858fac3738 100644 (file)
@@ -76,16 +76,6 @@ static inline struct list_head *get_list_head(struct __queue *queue)
 #define LIST_CONTAINOR(ptr, type, member) \
        ((type *)((char *)(ptr)-(size_t)(&((type *)0)->member)))
 
-static inline void _exit_critical(spinlock_t *plock, unsigned long *pirqL)
-{
-       spin_unlock_irqrestore(plock, *pirqL);
-}
-
-static inline void _exit_critical_ex(spinlock_t *plock, unsigned long *pirqL)
-{
-       spin_unlock_irqrestore(plock, *pirqL);
-}
-
 static inline int _enter_critical_mutex(struct mutex *pmutex,
                                        unsigned long *pirqL)
 {
index a621b80da938952ee6dda72481f22b339513f016..93fc5ee5d7a136e16d24baf888669b950e81ca29 100644 (file)
@@ -213,7 +213,7 @@ _func_enter_;
                break;
        }
 
-       _exit_critical(&pxmitpriv->lock, &irqL);
+       spin_unlock_irqrestore(&pxmitpriv->lock, irqL);
 
        purb    = pxmitbuf->pxmit_urb[0];