mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: fixed indentation and unnecessary space errors
Fixed the indentation errors and removed unnecessary space warnings to comply with coding style Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com> Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2467635ee3
commit
3cef1a2e8c
|
@ -45,8 +45,8 @@
|
|||
|
||||
/* static int msglevel = MSG_LEVEL_DEBUG; */
|
||||
static int msglevel = MSG_LEVEL_INFO;
|
||||
const u8 acbyIERate[MAX_RATE] =
|
||||
{0x02, 0x04, 0x0B, 0x16, 0x0C, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6C};
|
||||
const u8 acbyIERate[MAX_RATE] = {0x02, 0x04, 0x0B, 0x16, 0x0C, 0x12, 0x18,
|
||||
0x24, 0x30, 0x48, 0x60, 0x6C};
|
||||
|
||||
#define AUTORATE_TXOK_CNT 0x0400
|
||||
#define AUTORATE_TXFAIL_CNT 0x0064
|
||||
|
@ -97,10 +97,7 @@ void s_vResetCounter(PKnownNodeDB psNodeDBTable)
|
|||
* Return Value: RateIdx
|
||||
*
|
||||
-*/
|
||||
u16
|
||||
RATEwGetRateIdx(
|
||||
u8 byRate
|
||||
)
|
||||
u16 RATEwGetRateIdx(u8 byRate)
|
||||
{
|
||||
u16 ii;
|
||||
|
||||
|
@ -168,7 +165,9 @@ void RATEvParseMaxRate(struct vnt_private *pDevice,
|
|||
* pDevice->byTopOFDMBasicRate
|
||||
*/
|
||||
CARDbAddBasicRate((void *)pDevice, RATEwGetRateIdx(byRate));
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ParseMaxRate AddBasicRate: %d\n", RATEwGetRateIdx(byRate));
|
||||
DBG_PRT(MSG_LEVEL_DEBUG,
|
||||
KERN_INFO"ParseMaxRate AddBasicRate: %d\n",
|
||||
RATEwGetRateIdx(byRate));
|
||||
}
|
||||
byRate = (u8)(pItemRates->abyRates[ii]&0x7F);
|
||||
if (byHighSuppRate == 0)
|
||||
|
@ -194,7 +193,9 @@ void RATEvParseMaxRate(struct vnt_private *pDevice,
|
|||
* pDevice->byTopOFDMBasicRate
|
||||
*/
|
||||
CARDbAddBasicRate((void *)pDevice, RATEwGetRateIdx(byRate));
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"ParseMaxRate AddBasicRate: %d\n", RATEwGetRateIdx(byRate));
|
||||
DBG_PRT(MSG_LEVEL_DEBUG,
|
||||
KERN_INFO"ParseMaxRate AddBasicRate: %d\n",
|
||||
RATEwGetRateIdx(byRate));
|
||||
}
|
||||
byRate = (u8)(pItemExtRates->abyRates[ii]&0x7F);
|
||||
if (byHighSuppRate == 0)
|
||||
|
@ -204,7 +205,8 @@ void RATEvParseMaxRate(struct vnt_private *pDevice,
|
|||
*pwSuppRate |= (1<<RATEwGetRateIdx(byRate));
|
||||
|
||||
/* DBG_PRN_GRP09(("ParseMaxRate : HighSuppRate: %d, %X\n",
|
||||
RATEwGetRateIdx(byRate), byRate)); */
|
||||
* RATEwGetRateIdx(byRate), byRate));
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -343,12 +345,8 @@ void RATEvTxRateFallBack(struct vnt_private *pDevice,
|
|||
* Return Value: None
|
||||
*
|
||||
-*/
|
||||
u8
|
||||
RATEuSetIE (
|
||||
PWLAN_IE_SUPP_RATES pSrcRates,
|
||||
PWLAN_IE_SUPP_RATES pDstRates,
|
||||
unsigned int uRateLen
|
||||
)
|
||||
u8 RATEuSetIE(PWLAN_IE_SUPP_RATES pSrcRates, PWLAN_IE_SUPP_RATES pDstRates,
|
||||
unsigned int uRateLen)
|
||||
{
|
||||
unsigned int ii, uu, uRateCnt = 0;
|
||||
|
||||
|
@ -368,4 +366,3 @@ RATEuSetIE (
|
|||
}
|
||||
return (u8)uRateCnt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue