]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: vt6656: remove unused variables from struct tagCMD_ITEM
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 12 Jul 2014 06:53:43 +0000 (07:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 20:20:14 +0000 (13:20 -0700)
Also remove local variables

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

index 5621c1496fd14b56a94316b342572bc305c7f60f..1987d5c3ee01a657ed68440458e98ea72dd81a3b 100644 (file)
@@ -141,8 +141,6 @@ void vRunCommand(struct work_struct *work)
 
 static int s_bCommandComplete(struct vnt_private *pDevice)
 {
-       int bRadioCmd = false;
-       int bForceSCAN = true;
 
        pDevice->eCommandState = WLAN_CMD_IDLE;
        if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) {
@@ -151,8 +149,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
                return true;
        } else {
                pDevice->eCommand = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].eCmd;
-               bRadioCmd = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].bRadioCmd;
-               bForceSCAN = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].bForceSCAN;
+
                ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdDequeueIdx, CMD_Q_SIZE);
                pDevice->cbFreeCmdQueue++;
                pDevice->bCmdRunning = true;
@@ -197,7 +194,6 @@ int bScheduleCommand(struct vnt_private *pDevice,
        if (pDevice->cbFreeCmdQueue == 0)
                return false;
        pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand;
-       pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true;
 
        ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE);
        pDevice->cbFreeCmdQueue--;
index 4fe34b534abec455301dd3d51e22289a6ef72bf9..98387f33f1ff0fd419adc2e9fa4650998b2aed13 100644 (file)
@@ -58,10 +58,6 @@ typedef enum tagCMD_STATUS {
 
 typedef struct tagCMD_ITEM {
     CMD_CODE eCmd;
-    bool     bNeedRadioOFF;
-    bool     bRadioCmd;
-    bool     bForceSCAN;
-    u16     wDeAuthenReason;
 } CMD_ITEM, *PCMD_ITEM;
 
 // Command state