From 9d8e79ed3262b0f7e64168f8a1b7967a03353ca7 Mon Sep 17 00:00:00 2001 From: Xenia Ragiadakou Date: Tue, 18 Jun 2013 05:29:38 +0300 Subject: [PATCH] staging: rtl8192u: fix spaces around relational operators in r819xU_phy.c This patch fixes the whitespace around relational operators to meet the 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 | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index fc52c785b16e..5941b9a7ee3a 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -86,7 +86,7 @@ void rtl8192_setBBreg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask, u32 OriginalValue, BitShift, NewValue; - if (dwBitMask!= bMaskDWord) { //if not "double word" write + if (dwBitMask != bMaskDWord) { //if not "double word" write read_nic_dword(dev, dwRegAddr, &OriginalValue); BitShift = rtl8192_CalculateBitShift(dwBitMask); NewValue = (((OriginalValue) & (~dwBitMask)) | (dwData << BitShift)); @@ -247,7 +247,7 @@ void rtl8192_phy_RFSerialWrite(struct net_device *dev, rtl8192_setBBreg(dev, pPhyReg->rf3wireOffset, bMaskDWord, DataAndAddr); - if (Offset==0x0) + if (Offset == 0x0) priv->RfReg0Value[eRFPath] = Data; // Switch back to Reg_Mode0; @@ -470,7 +470,7 @@ void rtl8192_phy_configmac(struct net_device *dev) dwArrayLen = MACPHY_ArrayLength; pdwArray = rtl819XMACPHY_Array; } - for (i = 0; iRfOffReason==RF_CHANGE_BY_IPS) + if (pMgntInfo->RfOffReason == RF_CHANGE_BY_IPS) Adapter->HalFunc.LedControlHandler(Adapter,LED_CTL_NO_LINK); else // Turn off LED if RF is not ON. @@ -1234,8 +1234,8 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, break; } - if (CurrentCmd->CmdID==CmdID_End) { - if ((*stage)==2) { + if (CurrentCmd->CmdID == CmdID_End) { + if ((*stage) == 2) { (*delay) = CurrentCmd->msDelay; return true; } else { @@ -1335,20 +1335,20 @@ u8 rtl8192_phy_SwChnl(struct net_device *dev, u8 channel) switch (priv->ieee80211->mode) { case WIRELESS_MODE_A: case WIRELESS_MODE_N_5G: - if (channel<=14) { + if (channel <= 14) { RT_TRACE(COMP_ERR, "WIRELESS_MODE_A but channel<=14"); return false; } break; case WIRELESS_MODE_B: - if (channel>14) { + if (channel > 14) { RT_TRACE(COMP_ERR, "WIRELESS_MODE_B but channel>14"); return false; } break; case WIRELESS_MODE_G: case WIRELESS_MODE_N_24G: - if (channel>14) { + if (channel > 14) { RT_TRACE(COMP_ERR, "WIRELESS_MODE_G but channel>14"); return false; } @@ -1433,7 +1433,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) if (priv->cck_present_attentuation > 22) priv->cck_present_attentuation = 22; - if (priv->cck_present_attentuation< 0) + if (priv->cck_present_attentuation < 0) priv->cck_present_attentuation = 0; RT_TRACE(COMP_INIT, "20M, pHalData->CCKPresentAttentuation = %d\n", priv->cck_present_attentuation); @@ -1467,7 +1467,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) if (priv->chan == 14 && !priv->bcck_in_ch14) { priv->bcck_in_ch14 = true; dm_cck_txpower_adjust(dev,priv->bcck_in_ch14); - } else if (priv->chan!= 14 && priv->bcck_in_ch14) { + } else if (priv->chan != 14 && priv->bcck_in_ch14) { priv->bcck_in_ch14 = false; dm_cck_txpower_adjust(dev,priv->bcck_in_ch14); } else { @@ -1532,9 +1532,9 @@ void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, priv->CurrentChannelBW = Bandwidth; - if (Offset==HT_EXTCHNL_OFFSET_LOWER) + if (Offset == HT_EXTCHNL_OFFSET_LOWER) priv->nCur40MhzPrimeSC = HAL_PRIME_CHNL_OFFSET_UPPER; - else if (Offset==HT_EXTCHNL_OFFSET_UPPER) + else if (Offset == HT_EXTCHNL_OFFSET_UPPER) priv->nCur40MhzPrimeSC = HAL_PRIME_CHNL_OFFSET_LOWER; else priv->nCur40MhzPrimeSC = HAL_PRIME_CHNL_OFFSET_DONT_CARE; -- 2.20.1