From: Janani Ravichandran Date: Thu, 11 Feb 2016 21:33:15 +0000 (-0500) Subject: staging: octeon: Remove unneeded parentheses in assignment X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d5047c981f2e5a0fe6003c98b9c742c349d75a3;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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; }