mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
staging: rtl8192e: remove unnecessary parentheses - Coding Style
Remove unneccessary parentheses, and removed unnecessary (void *) cast Signed-off-by: John Whitmore <johnfwhitmore@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4b22ca814e
commit
8df6d28548
|
|
@ -529,7 +529,7 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u
|
|||
u8 EWC11NHTCap[] = {0x00, 0x90, 0x4c, 0x33}; // For 11n EWC definition, 2007.07.17, by Emily
|
||||
|
||||
memcpy(posHTCap, EWC11NHTCap, sizeof(EWC11NHTCap));
|
||||
pCapELE = (PHT_CAPABILITY_ELE)&(posHTCap[4]);
|
||||
pCapELE = (PHT_CAPABILITY_ELE)&posHTCap[4];
|
||||
} else {
|
||||
pCapELE = (PHT_CAPABILITY_ELE)posHTCap;
|
||||
}
|
||||
|
|
@ -1072,10 +1072,10 @@ void HTInitializeHTInfo(struct ieee80211_device *ieee)
|
|||
pHTInfo->CurrentAMPDUFactor = pHTInfo->AMPDU_Factor;
|
||||
|
||||
// Initialize all of the parameters related to 11n
|
||||
memset((void *)(&(pHTInfo->SelfHTCap)), 0, sizeof(pHTInfo->SelfHTCap));
|
||||
memset((void *)(&(pHTInfo->SelfHTInfo)), 0, sizeof(pHTInfo->SelfHTInfo));
|
||||
memset((void *)(&(pHTInfo->PeerHTCapBuf)), 0, sizeof(pHTInfo->PeerHTCapBuf));
|
||||
memset((void *)(&(pHTInfo->PeerHTInfoBuf)), 0, sizeof(pHTInfo->PeerHTInfoBuf));
|
||||
memset(&pHTInfo->SelfHTCap, 0, sizeof(pHTInfo->SelfHTCap));
|
||||
memset(&pHTInfo->SelfHTInfo, 0, sizeof(pHTInfo->SelfHTInfo));
|
||||
memset(&pHTInfo->PeerHTCapBuf, 0, sizeof(pHTInfo->PeerHTCapBuf));
|
||||
memset(&pHTInfo->PeerHTInfoBuf, 0, sizeof(pHTInfo->PeerHTInfoBuf));
|
||||
|
||||
pHTInfo->bSwBwInProgress = false;
|
||||
pHTInfo->ChnlOp = CHNLOP_NONE;
|
||||
|
|
@ -1091,7 +1091,7 @@ void HTInitializeHTInfo(struct ieee80211_device *ieee)
|
|||
|
||||
//MCS rate initialized here
|
||||
{
|
||||
u8 *RegHTSuppRateSets = &(ieee->RegHTSuppRateSet[0]);
|
||||
u8 *RegHTSuppRateSets = &ieee->RegHTSuppRateSet[0];
|
||||
|
||||
RegHTSuppRateSets[0] = 0xFF; //support MCS 0~7
|
||||
RegHTSuppRateSets[1] = 0xFF; //support MCS 8~15
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user