staging: rtl8192u: fix checkpatch braces warning
authorRui Miguel Silva <rmfrfs@gmail.com>
Mon, 28 Apr 2014 11:12:54 +0000 (12:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:22:43 +0000 (20:22 -0400)
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>
drivers/staging/rtl8192u/r8192U_dm.c
drivers/staging/rtl8192u/r8192U_wx.c
drivers/staging/rtl8192u/r819xU_firmware.c
drivers/staging/rtl8192u/r819xU_phy.c

index d97ad7b909bc04489b7c993e319a265bb5ac5c44..9fa12e4618b13964b4cb76e2919f5cb74c412faf 100644 (file)
@@ -183,9 +183,8 @@ void dm_CheckRxAggregation(struct net_device *dev) {
        curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt;
        curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt;
 
-       if((curTxOkCnt + curRxOkCnt) < 15000000) {
+       if ((curTxOkCnt + curRxOkCnt) < 15000000)
                return;
-       }
 
        if(curTxOkCnt > 4*curRxOkCnt) {
                if (priv->bCurrentRxAggrEnable) {
@@ -1646,9 +1645,8 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
                        write_nic_byte(dev, UFWP, 1);
        }
        //Restore TX Power Tracking Index
-       if(priv->btxpower_trackingInit && priv->btxpower_tracking){
+       if (priv->btxpower_trackingInit && priv->btxpower_tracking)
                dm_txpower_reset_recovery(dev);
-       }
 
        //
        //Restore BB Initial Gain
index c70af014a31670428b67205763be1f2a786f42a0..72db77317dec04b1b9af0ff064484dc171b7811e 100644 (file)
@@ -275,9 +275,8 @@ static int rtl8180_wx_get_range(struct net_device *dev,
 
        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->min_frag = MIN_FRAG_THRESHOLD;
        range->max_frag = MAX_FRAG_THRESHOLD;
index ecfb66538eb32a03c338d1399c9493ddcb72f223..98a113a6e43953f7e3bbbd2d51ff47af47a8a7ad 100644 (file)
@@ -277,13 +277,11 @@ bool init_firmware(struct net_device *dev)
                 *   and Tx descriptor info
                 * */
                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);
-               }
 
-               if (rt_status != TRUE) {
+               if (rt_status != TRUE)
                        goto download_firmware_fail;
-               }
 
                switch (init_step) {
                case FW_INIT_STEP0_BOOT:
index b9f35313c7ab5b90826439beaefc43a7cbdcc91d..87e07ba49ecd713357bf593b5eb6004e43258396 100644 (file)
@@ -504,9 +504,8 @@ void rtl8192_phy_configmac(struct net_device *dev)
                pdwArray = rtl819XMACPHY_Array;
        }
        for (i = 0; i < dwArrayLen; i = i+3) {
-               if (pdwArray[i] == 0x318) {
+               if (pdwArray[i] == 0x318)
                        pdwArray[i+2] = 0x00000800;
-               }
 
                RT_TRACE(COMP_DBG,
                         "Rtl8190MACPHY_Array[0]=%x Rtl8190MACPHY_Array[1]=%x Rtl8190MACPHY_Array[2]=%x\n",