staging: octeon: Remove unneeded parentheses in assignment
PATCH 1/1 staging: octeon: Remove unneeded parentheses in assignment
Remove parentheses around the right hand side of assignments as they are not needed. Semantic patch used:
@@
expression a, b, c;
@@
(
a = (b == c)
|
a =
- (
b
- )
)
Signed-off-by Janani Ravichandran <[email protected]>
--- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -1
@@ -1048,7 +1048,7 @@ static struct cvmx_usb_port_status cvmx_usb_get_status( result.port_speed = usbc_hprt.s.prtspd; result.connected = usbc_hprt.s.prtconnsts; result.connect_change = - (result.connected != usb->port_status.connected); + result.connected != usb->port_status.connected;return result; }
Signature · 1 line
2.5.0