]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtlwifi: Remove unnecessary parentheses
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Sat, 30 Mar 2019 05:39:36 +0000 (11:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2019 08:28:32 +0000 (09:28 +0100)
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>
drivers/staging/rtlwifi/phydm/phydm.c

index a69be1c19f2561f9572e470c1ab2aa439e0b4610..473eeb6b7fab4f4a9def8eaceb58b38b8c0d73cb 100644 (file)
@@ -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);