staging: rtl8192u: fix checkpatch braces warning

fix some code style related to the use of braces in a one statement block

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Rui Miguel Silva 2014-04-28 12:12:54 +01:00 committed by Greg Kroah-Hartman
parent 7626e3d0d4
commit 2930d0b977
4 changed files with 6 additions and 12 deletions

View File

@ -183,9 +183,8 @@ void dm_CheckRxAggregation(struct net_device *dev) {
curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt; curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt;
curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt; curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt;
if((curTxOkCnt + curRxOkCnt) < 15000000) { if ((curTxOkCnt + curRxOkCnt) < 15000000)
return; return;
}
if(curTxOkCnt > 4*curRxOkCnt) { if(curTxOkCnt > 4*curRxOkCnt) {
if (priv->bCurrentRxAggrEnable) { if (priv->bCurrentRxAggrEnable) {
@ -1646,9 +1645,8 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
write_nic_byte(dev, UFWP, 1); write_nic_byte(dev, UFWP, 1);
} }
//Restore TX Power Tracking Index //Restore TX Power Tracking Index
if(priv->btxpower_trackingInit && priv->btxpower_tracking){ if (priv->btxpower_trackingInit && priv->btxpower_tracking)
dm_txpower_reset_recovery(dev); dm_txpower_reset_recovery(dev);
}
// //
//Restore BB Initial Gain //Restore BB Initial Gain

View File

@ -275,9 +275,8 @@ static int rtl8180_wx_get_range(struct net_device *dev,
range->num_bitrates = RATE_COUNT; range->num_bitrates = RATE_COUNT;
for (i = 0; i < RATE_COUNT && i < IW_MAX_BITRATES; i++) { for (i = 0; i < RATE_COUNT && i < IW_MAX_BITRATES; i++)
range->bitrate[i] = rtl8180_rates[i]; range->bitrate[i] = rtl8180_rates[i];
}
range->min_frag = MIN_FRAG_THRESHOLD; range->min_frag = MIN_FRAG_THRESHOLD;
range->max_frag = MAX_FRAG_THRESHOLD; range->max_frag = MAX_FRAG_THRESHOLD;

View File

@ -277,13 +277,11 @@ bool init_firmware(struct net_device *dev)
* and Tx descriptor info * and Tx descriptor info
* */ * */
rt_status = fw_download_code(dev,mapped_file,file_length); rt_status = fw_download_code(dev,mapped_file,file_length);
if (rst_opt == OPT_SYSTEM_RESET) { if (rst_opt == OPT_SYSTEM_RESET)
release_firmware(fw_entry); release_firmware(fw_entry);
}
if (rt_status != TRUE) { if (rt_status != TRUE)
goto download_firmware_fail; goto download_firmware_fail;
}
switch (init_step) { switch (init_step) {
case FW_INIT_STEP0_BOOT: case FW_INIT_STEP0_BOOT:

View File

@ -504,9 +504,8 @@ void rtl8192_phy_configmac(struct net_device *dev)
pdwArray = rtl819XMACPHY_Array; pdwArray = rtl819XMACPHY_Array;
} }
for (i = 0; i < dwArrayLen; i = i+3) { for (i = 0; i < dwArrayLen; i = i+3) {
if (pdwArray[i] == 0x318) { if (pdwArray[i] == 0x318)
pdwArray[i+2] = 0x00000800; pdwArray[i+2] = 0x00000800;
}
RT_TRACE(COMP_DBG, RT_TRACE(COMP_DBG,
"Rtl8190MACPHY_Array[0]=%x Rtl8190MACPHY_Array[1]=%x Rtl8190MACPHY_Array[2]=%x\n", "Rtl8190MACPHY_Array[0]=%x Rtl8190MACPHY_Array[1]=%x Rtl8190MACPHY_Array[2]=%x\n",