diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-03-30 11:09:36 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-30 09:28:32 +0100 |
commit | 309614bb458f6c39d5c96a279b266ddee79fdce6 (patch) | |
tree | 7c29d2b81be040c79f349f511073251fa0938bd6 | |
parent | c377a43d4f38d95f7c12594b39ecf51e3272726c (diff) |
staging: rtlwifi: Remove unnecessary parentheses
Challenge suggested by coccinelle.
Remove unnecessary parentheses around the right hand side of an
assignment.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtlwifi/phydm/phydm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtlwifi/phydm/phydm.c b/drivers/staging/rtlwifi/phydm/phydm.c index a69be1c19f25..473eeb6b7fab 100644 --- a/drivers/staging/rtlwifi/phydm/phydm.c +++ b/drivers/staging/rtlwifi/phydm/phydm.c @@ -1542,7 +1542,7 @@ static void phydm_set_csi_mask_reg(void *dm_void, u32 tone_idx_tmp, if (tone_direction == FREQ_POSITIVE) { if (tone_idx_tmp >= (tone_num - 1)) - tone_idx_tmp = (tone_num - 1); + tone_idx_tmp = tone_num - 1; byte_offset = (u8)(tone_idx_tmp >> 3); bit_offset = (u8)(tone_idx_tmp & 0x7); |