From ec5d319bbf508442b8b0c2bdc3f05a94b3a67f20 Mon Sep 17 00:00:00 2001 From: Xenia Ragiadakou Date: Tue, 18 Jun 2013 05:29:36 +0300 Subject: [PATCH] staging: rtl8192u: fix spaces around '=' in r819xU_phy.c This patch fixes the whitespace around the assignment operator to meet linux kernel coding style. Signed-off-by: Xenia Ragiadakou Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192u/r819xU_phy.c | 46 +++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index 66ab3d591f26..95f19b9808f6 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -111,7 +111,7 @@ u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask) read_nic_dword(dev, dwRegAddr, &OriginalValue); BitShift = rtl8192_CalculateBitShift(dwBitMask); - Ret =(OriginalValue & dwBitMask) >> BitShift; + Ret = (OriginalValue & dwBitMask) >> BitShift; return Ret; } @@ -470,7 +470,7 @@ void rtl8192_phy_configmac(struct net_device *dev) dwArrayLen = MACPHY_ArrayLength; pdwArray = rtl819XMACPHY_Array; } - for (i = 0; i%s(), CheckBlock:%d\n", __FUNCTION__, CheckBlock); - for (i=0 ; i < CheckTimes ; i++) { + for (i = 0 ; i < CheckTimes ; i++) { // // Write Data to register and readback @@ -728,7 +728,7 @@ void rtl8192_BB_Config_ParaFile(struct net_device *dev) /*----Ckeck FPGAPHY0 and PHY1 board is OK----*/ // TODO: this function should be removed on ASIC , Emily 2007.2.2 - for (eCheckItem=(HW90_BLOCK_E)HW90_BLOCK_PHY0; eCheckItem<=HW90_BLOCK_PHY1; eCheckItem++) { + for (eCheckItem = (HW90_BLOCK_E)HW90_BLOCK_PHY0; eCheckItem<=HW90_BLOCK_PHY1; eCheckItem++) { rtStatus = rtl8192_phy_checkBBAndRF(dev, (HW90_BLOCK_E)eCheckItem, (RF90_RADIO_PATH_E)0); //don't care RF path if (rtStatus != 0) { RT_TRACE((COMP_ERR | COMP_PHY), "PHY_RF8256_Config():Check PHY%d Fail!!\n", eCheckItem-1); @@ -894,7 +894,7 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, switch (eRFPath) { case RF90_PATH_A: - for (i = 0;iCmdID==CmdID_End) { if ((*stage)==2) { - (*delay)=CurrentCmd->msDelay; + (*delay) = CurrentCmd->msDelay; return true; } else { (*stage)++; - (*step)=0; + (*step) = 0; continue; } } @@ -1271,7 +1271,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, break; } while (true); - (*delay)=CurrentCmd->msDelay; + (*delay) = CurrentCmd->msDelay; (*step)++; return false; } @@ -1360,10 +1360,10 @@ u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel) if (channel == 0) channel = 1; - priv->chan=channel; + priv->chan = channel; - priv->SwChnlStage=0; - priv->SwChnlStep=0; + priv->SwChnlStage = 0; + priv->SwChnlStep = 0; if (priv->up) rtl8192_SwChnl_WorkItem(dev); @@ -1394,7 +1394,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) if (priv->rf_chip == RF_PSEUDO_11N) { - priv->SetBWModeInProgress= false; + priv->SetBWModeInProgress = false; return; } @@ -1432,7 +1432,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) priv->cck_present_attentuation_20Mdefault + priv->cck_present_attentuation_difference; if (priv->cck_present_attentuation > 22) - priv->cck_present_attentuation= 22; + priv->cck_present_attentuation = 22; if (priv->cck_present_attentuation< 0) priv->cck_present_attentuation = 0; RT_TRACE(COMP_INIT, "20M, pHalData->CCKPresentAttentuation = %d\n", priv->cck_present_attentuation); @@ -1506,7 +1506,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) RT_TRACE(COMP_ERR, "Unknown RFChipID: %d\n", priv->rf_chip); break; } - priv->SetBWModeInProgress= false; + priv->SetBWModeInProgress = false; RT_TRACE(COMP_SWBW, "<==SetBWMode819xUsb(), %d", atomic_read(&(priv->ieee80211->atm_swbw))); } @@ -1528,7 +1528,7 @@ void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, if (priv->SetBWModeInProgress) return; - priv->SetBWModeInProgress= true; + priv->SetBWModeInProgress = true; priv->CurrentChannelBW = Bandwidth; -- 2.20.1