staging: vt6656: Remove dead variable bCCK.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 17 May 2014 08:50:33 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2014 16:58:30 +0000 (09:58 -0700)
bCCK is always true remove all false conditions and
local variable.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/wmgr.c

index b4489d6c6c26198b79afe7c2c546824e315f5d04..a70b27890a09405f7009d196c50f5f748b39ddf9 100644 (file)
@@ -737,7 +737,6 @@ void BBvCalculateParameter(struct vnt_private *pDevice, u32 cbFrameLength,
        u32 cbTmp;
        int bExtBit;
        u8 byPreambleType = pDevice->byPreambleType;
-       int bCCK = pDevice->bCCK;
 
     cbBitCount = cbFrameLength * 8;
     bExtBit = false;
@@ -757,8 +756,6 @@ void BBvCalculateParameter(struct vnt_private *pDevice, u32 cbFrameLength,
         break;
 
     case RATE_5M :
-        if (bCCK == false)
-            cbBitCount ++;
         cbUsCount = (cbBitCount * 10) / 55;
         cbTmp = (cbUsCount * 55) / 10;
         if (cbTmp != cbBitCount)
@@ -770,9 +767,6 @@ void BBvCalculateParameter(struct vnt_private *pDevice, u32 cbFrameLength,
         break;
 
     case RATE_11M :
-
-        if (bCCK == false)
-            cbBitCount ++;
         cbUsCount = cbBitCount / 11;
         cbTmp = cbUsCount * 11;
         if (cbTmp != cbBitCount) {
index 7e7ac8034581155b3ea5baba46896463e492ec93..824882487724c454483a2a86a7691e4dfe120356 100644 (file)
@@ -581,7 +581,6 @@ struct vnt_private {
 
        u32 dwMaxReceiveLifetime;  /* dot11MaxReceiveLifetime */
 
-       int bCCK;
        int bEncryptionEnable;
        int bShortSlotTime;
        int bProtectMode;
index 3832bcb3d798e218e1614c55786c683c3dd064db..ea0c9e7c331e0f15c611a33805eb80d038806342 100644 (file)
@@ -368,8 +368,6 @@ static int device_init_registers(struct vnt_private *pDevice)
 
        /* do MACbSoftwareReset in MACvInitialize */
 
-       /* force CCK */
-       pDevice->bCCK = true;
        pDevice->bProtectMode = false;
        /* only used in 11g type, sync with ERP IE */
        pDevice->bNonERPPresent = false;
index 64edc16da7cefda7a8cbf9c61a77cf3cf449b7f5..d08f290868182656bf17af9641d72afd6b2325ec 100644 (file)
@@ -2571,7 +2571,6 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
     }
 
     // Init the BSS informations
-    pDevice->bCCK = true;
     pDevice->bProtectMode = false;
     MACvDisableProtectMD(pDevice);
     pDevice->bBarkerPreambleMd = false;