rtl8192u: Remove unused semaphore rf_sem
authorBinoy Jayan <binoy.jayan@linaro.org>
Thu, 2 Jun 2016 10:53:02 +0000 (16:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Jun 2016 02:50:48 +0000 (19:50 -0700)
The semaphore 'rf_sem' in rtl8192u has no users, hence removing it.

Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c

index 65587ac210d7add0c875003949ce6ca300f3e183..821afc0ddac5c5dbff612c9024d6c9cfcde9f156 100644 (file)
@@ -880,7 +880,6 @@ typedef struct r8192_priv {
        short crcmon;
 
        struct mutex wx_mutex;
-       struct semaphore rf_sem;        /* Used to lock rf write operation */
 
        u8 rf_type;                     /* 0: 1T2R, 1: 2T4R */
        RT_RF_TYPE_819xU rf_chip;
index f9c465ca7beb35c2c1345f7a92ec6b1b23134532..dd0970facdf5bd5bfbe80fdd48bb30faab178d08 100644 (file)
@@ -2377,7 +2377,6 @@ static void rtl8192_init_priv_lock(struct r8192_priv *priv)
        spin_lock_init(&priv->tx_lock);
        spin_lock_init(&priv->irq_lock);
        mutex_init(&priv->wx_mutex);
-       sema_init(&priv->rf_sem, 1);
        mutex_init(&priv->mutex);
 }
 
This page took 0.038645 seconds and 5 git commands to generate.