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

staging: vt6656: s_bCommandComplete remove else from if

if returns out so remove else
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18647c58
...@@ -147,43 +147,45 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -147,43 +147,45 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
//Command Queue Empty //Command Queue Empty
pDevice->bCmdRunning = false; pDevice->bCmdRunning = false;
return true; return true;
} else { }
pDevice->eCommand = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].eCmd;
ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdDequeueIdx, CMD_Q_SIZE);
pDevice->cbFreeCmdQueue++;
pDevice->bCmdRunning = true;
switch (pDevice->eCommand) {
case WLAN_CMD_INIT_MAC80211:
pDevice->eCommandState = WLAN_CMD_INIT_MAC80211_START;
break;
case WLAN_CMD_TBTT_WAKEUP: pDevice->eCommand = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].eCmd;
pDevice->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
break;
case WLAN_CMD_BECON_SEND: ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdDequeueIdx, CMD_Q_SIZE);
pDevice->eCommandState = WLAN_CMD_BECON_SEND_START; pDevice->cbFreeCmdQueue++;
break; pDevice->bCmdRunning = true;
case WLAN_CMD_SETPOWER: switch (pDevice->eCommand) {
pDevice->eCommandState = WLAN_CMD_SETPOWER_START; case WLAN_CMD_INIT_MAC80211:
break; pDevice->eCommandState = WLAN_CMD_INIT_MAC80211_START;
break;
case WLAN_CMD_CHANGE_ANTENNA: case WLAN_CMD_TBTT_WAKEUP:
pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START; pDevice->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
break; break;
case WLAN_CMD_11H_CHSW: case WLAN_CMD_BECON_SEND:
pDevice->eCommandState = WLAN_CMD_11H_CHSW_START; pDevice->eCommandState = WLAN_CMD_BECON_SEND_START;
break; break;
default: case WLAN_CMD_SETPOWER:
break; pDevice->eCommandState = WLAN_CMD_SETPOWER_START;
} break;
vCommandTimerWait(pDevice, 0);
case WLAN_CMD_CHANGE_ANTENNA:
pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
break;
case WLAN_CMD_11H_CHSW:
pDevice->eCommandState = WLAN_CMD_11H_CHSW_START;
break;
default:
break;
} }
vCommandTimerWait(pDevice, 0);
return true; return true;
} }
......
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