summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reif <ke42caxa@cip.cs.fau.de>2013-02-22 12:13:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 09:45:29 -0700
commitc46cb54db3a01223bdd457ead25d4a3582c0babe (patch)
tree05fe48f1479c23e026dafe90f0095485eedef670
parentba0edc23df90332e4360d5116bcf3ea333e5de73 (diff)
staging: usbip: remove unnecessary braces
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>
-rw-r--r--drivers/staging/usbip/vhci_hcd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c
index f1ca08478da8..d7974cb2cc6f 100644
--- a/drivers/staging/usbip/vhci_hcd.c
+++ b/drivers/staging/usbip/vhci_hcd.c
@@ -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;