From 1d5047c981f2e5a0fe6003c98b9c742c349d75a3 Mon Sep 17 00:00:00 2001 From: Janani Ravichandran Date: Thu, 11 Feb 2016 16:33:15 -0500 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 16d45879d0c4..7844e2036060 100644 --- a/drivers/staging/octeon-usb/octeon-hcd.c +++ b/drivers/staging/octeon-usb/octeon-hcd.c @@ -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; } -- 2.39.5