mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 22:41:11 +07:00
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:
parent
6de5cd74fb
commit
81c2317cb9
@ -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",
|
||||
|
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user