staging: rtlwifi: phydm: remove unnecessary parentheses

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>
This commit is contained in:
Himadri Pandya 2019-03-09 23:46:08 +05:30 committed by Greg Kroah-Hartman
parent 6de5cd74fb
commit 81c2317cb9
2 changed files with 2 additions and 2 deletions

View 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) : int_distance = (fc >= f_interference) ? (fc - f_interference) :
(f_interference - fc); (f_interference - fc);
tone_idx_tmp = tone_idx_tmp =
(int_distance << 5); /* =10*(int_distance /0.3125) */ int_distance << 5; /* =10*(int_distance /0.3125) */
ODM_RT_TRACE( ODM_RT_TRACE(
dm, ODM_COMP_API, dm, ODM_COMP_API,
"int_distance = ((%d MHz)) Mhz, tone_idx_tmp = ((%d.%d))\n", "int_distance = ((%d MHz)) Mhz, tone_idx_tmp = ((%d.%d))\n",

View File

@ -1790,7 +1790,7 @@ phydm_process_rssi_for_dm_new_type(struct phy_dm_struct *dm,
if (undecorated_smoothed_pwdb <= 0) { if (undecorated_smoothed_pwdb <= 0) {
accumulate_pwdb = accumulate_pwdb =
(phy_info->rx_pwdb_all << scaling_factor); phy_info->rx_pwdb_all << scaling_factor;
undecorated_smoothed_pwdb = phy_info->rx_pwdb_all; undecorated_smoothed_pwdb = phy_info->rx_pwdb_all;
} else { } else {
accumulate_pwdb = accumulate_pwdb - accumulate_pwdb = accumulate_pwdb -