mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
staging: vt6656: s_bCommandComplete remove else from if
if returns out so remove else Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
18647c5877
commit
a675dc2136
@@ -147,43 +147,45 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
|
||||
//Command Queue Empty
|
||||
pDevice->bCmdRunning = false;
|
||||
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->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
|
||||
break;
|
||||
|
||||
case WLAN_CMD_BECON_SEND:
|
||||
pDevice->eCommandState = WLAN_CMD_BECON_SEND_START;
|
||||
break;
|
||||
|
||||
case WLAN_CMD_SETPOWER:
|
||||
pDevice->eCommandState = WLAN_CMD_SETPOWER_START;
|
||||
break;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
|
||||
break;
|
||||
|
||||
case WLAN_CMD_BECON_SEND:
|
||||
pDevice->eCommandState = WLAN_CMD_BECON_SEND_START;
|
||||
break;
|
||||
|
||||
case WLAN_CMD_SETPOWER:
|
||||
pDevice->eCommandState = WLAN_CMD_SETPOWER_START;
|
||||
break;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user