Skip to contentSkip to conversation

staging: vt6656: Remove always 0 variable dwDiagRefCount

PATCH New Malcolm Priestley 1 participant 1 message Nov 24, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6656: Remove always 0 variable dwDiagRefCount

Remove > 0 code.

---
 drivers/staging/vt6656/channel.c |  3 +--
 drivers/staging/vt6656/device.h  |  1 -
 drivers/staging/vt6656/rf.c      |  3 ---
 drivers/staging/vt6656/rxtx.c    | 56 ++++++++++++++--------------------------
 drivers/staging/vt6656/wcmd.c    |  2 --
 5 files changed, 21 insertions(+), 44 deletions(-)
drivers/staging/vt6656/channel.c +1 -2
index e430b35..5a4fa0e 100644
@@ -423,8 +423,7 @@ void CHvInitChannelTable(struct vnt_private *pDevice)
             break;
     }
 
-    if ((pDevice->dwDiagRefCount != 0) ||
-        (pDevice->b11hEable == true)) {
+    if (pDevice->b11hEable == true) {
         if (bMultiBand == true) {
 		for (ii = 0; ii < CB_MAX_CHANNEL; ii++) {
 			sChannelTbl[ii+1].bValid = true;
drivers/staging/vt6656/device.h +0 -1
index b7a6e14..ec8acbd 100644
@@ -697,7 +697,6 @@ struct vnt_private {
 	u8 byBBPreEDIndex;
 
 	int bRadioCmd;
-	u32 dwDiagRefCount;
 
 	/* For FOE Tuning */
 	u8  byFOETuning;
drivers/staging/vt6656/rf.c +0 -3
index e545232..1e8f64b 100644
@@ -740,9 +740,6 @@ int RFbSetPower(struct vnt_private *priv, u32 rate, u32 channel)
 	int ret = true;
 	u8 power = priv->byCCKPwr;
 
-	if (priv->dwDiagRefCount)
-		return true;
-
 	if (channel == 0)
 		return -EINVAL;
 
drivers/staging/vt6656/rxtx.c +20 -36

85 lines not on this page · raw message

drivers/staging/vt6656/wcmd.c +0 -2
index 2d05ccb..6b95229 100644
@@ -283,8 +283,6 @@ void vRunCommand(struct work_struct *work)
 	if (pDevice->Flags & fMP_DISCONNECTED)
 		return;
 
-	if (pDevice->dwDiagRefCount != 0)
-		return;
 	if (pDevice->bCmdRunning != true)
 		return;
 
Signature · 1 line
1.8.4.4