mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-07 11:45:20 +07:00
drivers: staging: vt6656: card.c: Remove useless return statement
This patch removes the return of the function CARDbSetMediaChannel, that always return TRUE value. Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ba768b917f
commit
0ae3a912d8
@ -91,15 +91,10 @@ const WORD cwRXBCNTSFOff[MAX_RATE] =
|
|||||||
* uConnectionChannel - Channel to be set
|
* uConnectionChannel - Channel to be set
|
||||||
* Out:
|
* Out:
|
||||||
* none
|
* none
|
||||||
*
|
|
||||||
* Return Value: TRUE if succeeded; FALSE if failed.
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
BOOL CARDbSetMediaChannel(void *pDeviceHandler, unsigned int uConnectionChannel)
|
void CARDbSetMediaChannel(void *pDeviceHandler, unsigned int uConnectionChannel)
|
||||||
{
|
{
|
||||||
PSDevice pDevice = (PSDevice) pDeviceHandler;
|
PSDevice pDevice = (PSDevice) pDeviceHandler;
|
||||||
BOOL bResult = TRUE;
|
|
||||||
|
|
||||||
|
|
||||||
if (pDevice->byBBType == BB_TYPE_11A) { // 15 ~ 38
|
if (pDevice->byBBType == BB_TYPE_11A) { // 15 ~ 38
|
||||||
if ((uConnectionChannel < (CB_MAX_CHANNEL_24G+1)) || (uConnectionChannel > CB_MAX_CHANNEL))
|
if ((uConnectionChannel < (CB_MAX_CHANNEL_24G+1)) || (uConnectionChannel > CB_MAX_CHANNEL))
|
||||||
@ -140,7 +135,6 @@ BOOL bResult = TRUE;
|
|||||||
RFbRawSetPower(pDevice, pDevice->abyCCKPwrTbl[uConnectionChannel-1], RATE_1M);
|
RFbRawSetPower(pDevice, pDevice->abyCCKPwrTbl[uConnectionChannel-1], RATE_1M);
|
||||||
}
|
}
|
||||||
ControlvWriteByte(pDevice,MESSAGE_REQUEST_MACREG,MAC_REG_CHANNEL,(BYTE)(uConnectionChannel|0x80));
|
ControlvWriteByte(pDevice,MESSAGE_REQUEST_MACREG,MAC_REG_CHANNEL,(BYTE)(uConnectionChannel|0x80));
|
||||||
return(bResult);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1088,7 +1082,7 @@ CARDbChannelSwitch (
|
|||||||
|
|
||||||
if (byCount == 0) {
|
if (byCount == 0) {
|
||||||
pDevice->sMgmtObj.uCurrChannel = byNewChannel;
|
pDevice->sMgmtObj.uCurrChannel = byNewChannel;
|
||||||
bResult = CARDbSetMediaChannel(pDevice, byNewChannel);
|
CARDbSetMediaChannel(pDevice, byNewChannel);
|
||||||
|
|
||||||
return bResult;
|
return bResult;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ typedef enum _CARD_OP_MODE {
|
|||||||
|
|
||||||
/*--------------------- Export Functions --------------------------*/
|
/*--------------------- Export Functions --------------------------*/
|
||||||
|
|
||||||
BOOL CARDbSetMediaChannel(void *pDeviceHandler,
|
void CARDbSetMediaChannel(void *pDeviceHandler,
|
||||||
unsigned int uConnectionChannel);
|
unsigned int uConnectionChannel);
|
||||||
void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType);
|
void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType);
|
||||||
void vUpdateIFS(void *pDeviceHandler);
|
void vUpdateIFS(void *pDeviceHandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user