Commit b53628cb authored by Binoy Jayan's avatar Binoy Jayan Committed by Greg Kroah-Hartman

rtl8192u: Remove unused semaphore rf_sem

The semaphore 'rf_sem' in rtl8192u has no users, hence removing it.
Signed-off-by: default avatarBinoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87d63bcc
...@@ -880,7 +880,6 @@ typedef struct r8192_priv { ...@@ -880,7 +880,6 @@ typedef struct r8192_priv {
short crcmon; short crcmon;
struct mutex wx_mutex; struct mutex wx_mutex;
struct semaphore rf_sem; /* Used to lock rf write operation */
u8 rf_type; /* 0: 1T2R, 1: 2T4R */ u8 rf_type; /* 0: 1T2R, 1: 2T4R */
RT_RF_TYPE_819xU rf_chip; RT_RF_TYPE_819xU rf_chip;
......
...@@ -2377,7 +2377,6 @@ static void rtl8192_init_priv_lock(struct r8192_priv *priv) ...@@ -2377,7 +2377,6 @@ static void rtl8192_init_priv_lock(struct r8192_priv *priv)
spin_lock_init(&priv->tx_lock); spin_lock_init(&priv->tx_lock);
spin_lock_init(&priv->irq_lock); spin_lock_init(&priv->irq_lock);
mutex_init(&priv->wx_mutex); mutex_init(&priv->wx_mutex);
sema_init(&priv->rf_sem, 1);
mutex_init(&priv->mutex); mutex_init(&priv->mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment