Commit 18647c58 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: remove unused variables from struct tagCMD_ITEM

Also remove local variables
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf07bb8e
...@@ -141,8 +141,6 @@ void vRunCommand(struct work_struct *work) ...@@ -141,8 +141,6 @@ void vRunCommand(struct work_struct *work)
static int s_bCommandComplete(struct vnt_private *pDevice) static int s_bCommandComplete(struct vnt_private *pDevice)
{ {
int bRadioCmd = false;
int bForceSCAN = true;
pDevice->eCommandState = WLAN_CMD_IDLE; pDevice->eCommandState = WLAN_CMD_IDLE;
if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) { if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) {
...@@ -151,8 +149,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -151,8 +149,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
return true; return true;
} else { } else {
pDevice->eCommand = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].eCmd; 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); ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdDequeueIdx, CMD_Q_SIZE);
pDevice->cbFreeCmdQueue++; pDevice->cbFreeCmdQueue++;
pDevice->bCmdRunning = true; pDevice->bCmdRunning = true;
...@@ -197,7 +194,6 @@ int bScheduleCommand(struct vnt_private *pDevice, ...@@ -197,7 +194,6 @@ int bScheduleCommand(struct vnt_private *pDevice,
if (pDevice->cbFreeCmdQueue == 0) if (pDevice->cbFreeCmdQueue == 0)
return false; return false;
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand; pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand;
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true;
ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE); ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE);
pDevice->cbFreeCmdQueue--; pDevice->cbFreeCmdQueue--;
......
...@@ -58,10 +58,6 @@ typedef enum tagCMD_STATUS { ...@@ -58,10 +58,6 @@ typedef enum tagCMD_STATUS {
typedef struct tagCMD_ITEM { typedef struct tagCMD_ITEM {
CMD_CODE eCmd; CMD_CODE eCmd;
bool bNeedRadioOFF;
bool bRadioCmd;
bool bForceSCAN;
u16 wDeAuthenReason;
} CMD_ITEM, *PCMD_ITEM; } CMD_ITEM, *PCMD_ITEM;
// Command state // Command state
......
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