Staging: rtl8192e: Remove parentheses around the right hand side of assignments
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Mon, 18 Mar 2019 07:05:53 +0000 (12:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 17:53:15 +0000 (18:53 +0100)
commitf680cf503abcd74695e0803ab1a189cfa075b65c
treec4ac74822940f619cd0fbdd2c09c001ea1f7f6fa
parent043ad6b1c112b176b996508988d137493da2f105
Staging: rtl8192e: Remove parentheses around the right hand side of assignments

Avoid useless parentheses to the right hand side of an assignment.
Issue found using coccinelle.
The semantic patch that fixes the problem is as follows

// <smpl>
@r1 disable paren@
expression value,e;
@@

(
- value = (e)
+ value = e
)

@r2 depends on r1@
expression value,e;
constant c;
@@

(
- value = (e == c)
+ value = (e == c)
|
- value = (e <= c)
+ value = (e <= c)
|
- value = (e >= c)
+ value = (e >= c)
|
- value = (e != c)
+ value = (e != c)
)
// </smpl>

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c