staging: octeon: Remove unneeded parentheses in assignment
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Thu, 11 Feb 2016 21:33:15 +0000 (16:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:40:02 +0000 (19:40 -0800)
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 <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon-usb/octeon-hcd.c

index 16d45879d0c40b0047a0c94510589f2f6848b0a1..7844e2036060a08919d360e08a910f4bff535e2f 100644 (file)
@@ -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;
 }