staging: rtlwifi: Remove nonessential semicolon
authorArushi Singhal <arushisinghal19971997@gmail.com>
Sat, 3 Mar 2018 19:09:13 +0000 (00:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:01:11 +0000 (04:01 -0800)
Remove non-essential semicolon after 'else' and 'switch' statements. Issue
found using semicolon.cocci Coccinelle script.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/base.c
drivers/staging/rtlwifi/phydm/phydm_rainfo.c

index c947def37d31c24d22861f098e806c2d4d8c6425..eea00035a735251380747a5cd0e5088bfc3e6fe8 100644 (file)
@@ -710,20 +710,20 @@ u8 rtl_mrate_idx_to_arfr_id(
                        ret = RATEID_IDX_BGN_40M_1SS;
                else
                        ret = RATEID_IDX_BGN_40M_2SS;
-               break;
+               break;
        case RATR_INX_WIRELESS_N:
        case RATR_INX_WIRELESS_NG:
                if (rtlphy->rf_type == RF_1T1R)
                        ret = RATEID_IDX_GN_N1SS;
                else
                        ret = RATEID_IDX_GN_N2SS;
-               break;
+               break;
        case RATR_INX_WIRELESS_NB:
                if (rtlphy->rf_type == RF_1T1R)
                        ret = RATEID_IDX_BGN_20M_1SS_BN;
                else
                        ret = RATEID_IDX_BGN_20M_2SS_BN;
-               break;
+               break;
        case RATR_INX_WIRELESS_GB:
                ret = RATEID_IDX_BG;
                break;
index 8c08c76d4edaba6c13bfed26ddb8a248a17c399a..e10a91aeebee1383009a6de186aeac750b1bb856 100644 (file)
@@ -142,7 +142,6 @@ void odm_c2h_ra_para_report_handler(void *dm_void, u8 *cmd_buf, u8 cmd_len)
                                     "SGI_support =", cmd_buf[7]);
                        ODM_RT_TRACE(dm, ODM_FW_DEBUG_TRACE, "%5s  %d\n",
                                     "Rate_ID =", cmd_buf[8]);
-                       ;
                }
                ODM_RT_TRACE(dm, ODM_FW_DEBUG_TRACE,
                             "-------------------------------\n");