staging: rtlwifi: phydm: remove unnecessary parentheses
authorHimadri Pandya <himadri18.07@gmail.com>
Sat, 9 Mar 2019 18:16:08 +0000 (23:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:23 +0000 (07:05 +0100)
Remove unnecessary parentheses around the right hand side of assignment
operator. Issue found using Coccinelle.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/phydm/phydm.c
drivers/staging/rtlwifi/phydm/phydm_hwconfig.c

index 52b85b3ddb34b7195c5981ae3c03bfe7ab45b767..a69be1c19f2561f9572e470c1ab2aa439e0b4610 100644 (file)
@@ -1767,7 +1767,7 @@ static u8 phydm_calculate_intf_distance(void *dm_void, u32 bw, u32 fc,
                int_distance = (fc >= f_interference) ? (fc - f_interference) :
                                                        (f_interference - fc);
                tone_idx_tmp =
-                       (int_distance << 5); /* =10*(int_distance /0.3125) */
+                       int_distance << 5; /* =10*(int_distance /0.3125) */
                ODM_RT_TRACE(
                        dm, ODM_COMP_API,
                        "int_distance = ((%d MHz)) Mhz, tone_idx_tmp = ((%d.%d))\n",
index a4ad39ab3ddff6ae9afd8adff8adf08143cb811d..4d2630e63789153b3d0c528f37d0b7d9ada11f8c 100644 (file)
@@ -1790,7 +1790,7 @@ phydm_process_rssi_for_dm_new_type(struct phy_dm_struct *dm,
 
                if (undecorated_smoothed_pwdb <= 0) {
                        accumulate_pwdb =
-                               (phy_info->rx_pwdb_all << scaling_factor);
+                               phy_info->rx_pwdb_all << scaling_factor;
                        undecorated_smoothed_pwdb = phy_info->rx_pwdb_all;
                } else {
                        accumulate_pwdb = accumulate_pwdb -