]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging: usbip: remove unnecessary braces
authorStefan Reif <ke42caxa@cip.cs.fau.de>
Fri, 22 Feb 2013 11:13:32 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:45:29 +0000 (09:45 -0700)
This patch fixes the following checkpatch warning:
-WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de>
Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/vhci_hcd.c

index f1ca08478da8717910df803e59318479e58d1590..d7974cb2cc6f7f499cac46297e41e8f43240f8af 100644 (file)
@@ -956,11 +956,10 @@ static int vhci_bus_resume(struct usb_hcd *hcd)
        dev_dbg(&hcd->self.root_hub->dev, "%s\n", __func__);
 
        spin_lock(&vhci->lock);
-       if (!HCD_HW_ACCESSIBLE(hcd)) {
+       if (!HCD_HW_ACCESSIBLE(hcd))
                rc = -ESHUTDOWN;
-       } else {
+       else
                hcd->state = HC_STATE_RUNNING;
-       }
        spin_unlock(&vhci->lock);
 
        return rc;