summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRehas Sachdeva <aquannie@gmail.com>2016-09-21 21:08:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-22 12:54:48 +0300
commitefb35d12b352c0603fe21a2199ba54aa61d22a54 (patch)
tree7a8449f75aed0d9c2964d85012b502eb27773590 /drivers
parent63e6464b62353988ef71fa28946fa9c5560d6469 (diff)
downloadlinux-efb35d12b352c0603fe21a2199ba54aa61d22a54.tar.xz
staging: octeon-usb: Remove unnecessary assignment
Remove 'x=a;' from a consecutive double assignment of the form 'x=a; x=b;'. Issue detected by the semantic patch found here: https://github.com/coccinelle/coccinellery/blob/master/write2/write2.cocci Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/octeon-usb/octeon-hcd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c
index 17442b3ed849..9a7858a300fd 100644
--- a/drivers/staging/octeon-usb/octeon-hcd.c
+++ b/drivers/staging/octeon-usb/octeon-hcd.c
@@ -3292,7 +3292,6 @@ static int octeon_usb_hub_status_data(struct usb_hcd *hcd, char *buf)
spin_lock_irqsave(&usb->lock, flags);
port_status = cvmx_usb_get_status(usb);
spin_unlock_irqrestore(&usb->lock, flags);
- buf[0] = 0;
buf[0] = port_status.connect_change << 1;
return buf[0] != 0;