Skip to content

Commit

Permalink
staging: usbip: remove unnecessary braces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Reif authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent ba0edc2 commit c46cb54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/usbip/vhci_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c46cb54

Please sign in to comment.