Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1412119

[PATCH v2 4/4] rtl8192u: Remove unused semaphore rf_sem

From Binoy Jayan <binoy.jayan@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v2 4/4] rtl8192u: Remove unused semaphore rf_sem
Date 2016-06-02 13:00 +0200
Message-ID <rFyw2-4Ts-5@gated-at.bofh.it> (permalink)
References <rFsTD-1nj-3@gated-at.bofh.it> <rFyw1-4Ts-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The semaphore 'rf_sem' in rtl8192u has no users, hence removing it.

Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
---
This patch depends on the following patch:
rtl8192u: Replace semaphore scan_sem with mutex

 drivers/staging/rtl8192u/r8192U.h      | 1 -
 drivers/staging/rtl8192u/r8192U_core.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h
index 2780838..f717cb3 100644
--- a/drivers/staging/rtl8192u/r8192U.h
+++ b/drivers/staging/rtl8192u/r8192U.h
@@ -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;
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index c6d3119..ccb4259 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -2374,7 +2374,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);
 }
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] *** rtl8192u: Replace semaphores with mutexes *** Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 07:00 +0200
  Re: [PATCH 0/4] *** rtl8192u: Replace semaphores with mutexes *** Arnd Bergmann <arnd@arndb.de> - 2016-06-02 10:00 +0200
  [PATCH v2 1/4] rtl8192u: r8192_priv: Replace semaphore wx_sem with mutex Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 13:00 +0200
  [PATCH v2 4/4] rtl8192u: Remove unused semaphore rf_sem Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 13:00 +0200
  [PATCH v2 2/4] rtl8192u: ieee80211_device: Replace semaphore wx_sem with mutex Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 13:00 +0200
  [PATCH v2 3/4] rtl8192u: Replace semaphore scan_sem with mutex Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 13:00 +0200
  [PATCH v2 0/4] *** rtl8192u: Replace semaphores with mutexes *** Binoy Jayan <binoy.jayan@linaro.org> - 2016-06-02 13:00 +0200
    Re: [PATCH v2 0/4] *** rtl8192u: Replace semaphores with mutexes *** Arnd Bergmann <arnd@arndb.de> - 2016-06-02 13:10 +0200

csiph-web