Staging: vt6656: Clean up spaces around parenthesized expressions
Clean up a number of places where unneeded spaces are used around expressions. Signed-off-by: Philip Worrall <philip.worrall@googlemail.com> Reviewed-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e25b75ec83
commit
c5b0b5fcdb
|
@ -129,7 +129,7 @@ void PSvEnablePowerSaving(void *hDeviceContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
pDevice->bPWBitOn = TRUE;
|
pDevice->bPWBitOn = TRUE;
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable... \n");
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable...\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -186,7 +186,7 @@ BOOL PSbConsiderPowerDown(void *hDeviceContext,
|
||||||
ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG,
|
ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG,
|
||||||
MAC_REG_PSCTL, &byData);
|
MAC_REG_PSCTL, &byData);
|
||||||
|
|
||||||
if ( (byData & PSCTL_PS) != 0 )
|
if ((byData & PSCTL_PS) != 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
|
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
|
||||||
|
@ -200,7 +200,7 @@ BOOL PSbConsiderPowerDown(void *hDeviceContext,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Tx Burst */
|
/* Tx Burst */
|
||||||
if ( pDevice->bPSModeTxBurst )
|
if (pDevice->bPSModeTxBurst)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Froce PSEN on */
|
/* Froce PSEN on */
|
||||||
|
@ -303,7 +303,7 @@ BOOL PSbSendNullPacket(void *hDeviceContext)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pMgmt->eCurrMode != WMAC_MODE_IBSS_STA)
|
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA)
|
||||||
pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((WORD)WLAN_SET_FC_TODS(1));
|
pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((WORD)WLAN_SET_FC_TODS(1));
|
||||||
|
|
||||||
memcpy(pTxPacket->p80211Header->sA3.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN);
|
memcpy(pTxPacket->p80211Header->sA3.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN);
|
||||||
|
@ -339,14 +339,14 @@ BOOL PSbIsNextTBTTWakeUp(void *hDeviceContext)
|
||||||
if (pMgmt->wCountToWakeUp == 0)
|
if (pMgmt->wCountToWakeUp == 0)
|
||||||
pMgmt->wCountToWakeUp = pMgmt->wListenInterval;
|
pMgmt->wCountToWakeUp = pMgmt->wListenInterval;
|
||||||
|
|
||||||
pMgmt->wCountToWakeUp --;
|
pMgmt->wCountToWakeUp--;
|
||||||
|
|
||||||
if (pMgmt->wCountToWakeUp == 1) {
|
if (pMgmt->wCountToWakeUp == 1) {
|
||||||
/* Turn on wake up to listen next beacon */
|
/* Turn on wake up to listen next beacon */
|
||||||
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
||||||
pDevice->bPSRxBeacon = FALSE;
|
pDevice->bPSRxBeacon = FALSE;
|
||||||
bWakeUp = TRUE;
|
bWakeUp = TRUE;
|
||||||
} else if ( !pDevice->bPSRxBeacon ) {
|
} else if (!pDevice->bPSRxBeacon) {
|
||||||
/* Listen until RxBeacon */
|
/* Listen until RxBeacon */
|
||||||
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue