Skip to contentSkip to conversation

staging: octeon: Remove unneeded parentheses in assignment

PATCH New Janani Ravichandran 1 participant 1 message Feb 11, 2016 Staging

lore
Share & tools
lore
#0 lore raw

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
- )
)

---
 drivers/staging/octeon-usb/octeon-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -1
index 16d4587..7844e20 100644
@@ -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