staging: rtlwifi: phydm: phydm_adc_sampling.c Remove brackets
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Thu, 28 Mar 2019 19:30:40 +0000 (01:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:22:54 +0000 (17:22 +0100)
Remove parentheses around right hand side of expression. Issue found
with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/phydm/phydm_adc_sampling.c

index f2468b82f745327482be1d8854c4899ce4a336fd..d3e9ae38662b1ba07ce6fd62cee9001c6d22a2ad 100644 (file)
@@ -67,7 +67,7 @@ static void phydm_la_get_tx_pkt_buf(void *dm_void)
                        "is_round_up = ((%d)), finish_addr=((0x%x)), 0x7c0=((0x%x))\n",
                        is_round_up, finish_addr, value32);
                /*Byte to 64Byte*/
-               smp_number = ((adc_smp_buf->buffer_size) >> 3);
+               smp_number = (adc_smp_buf->buffer_size) >> 3;
        } else {
                addr = adc_smp_buf->start_pos;
 
@@ -103,7 +103,7 @@ static void phydm_la_get_tx_pkt_buf(void *dm_void)
                                /*Reg140=0x780+(addr>>12),
                                 *addr=0x30~0x3F, total 16 pages
                                 */
-                               page = (addr >> 12);
+                               page = addr >> 12;
                        }
                        odm_set_bb_reg(dm, 0x0140, MASKLWORD, 0x780 + page);