]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2eb678f09fd0dfb052be00bb42ba5526f10cbfda
treec4ac74822940f619cd0fbdd2c09c001ea1f7f6fa
parent59b353f59e2480112c7d2d331b09397b85a65f53
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