]> 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)
commit43d82023f5c79901584c75605cf2c02c3db8e421
treec4ac74822940f619cd0fbdd2c09c001ea1f7f6fa
parentddd897b49e339f13c8715e4461157de850a935b2
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