From: Stefan Reif Date: Fri, 22 Feb 2013 11:13:32 +0000 (+0100) Subject: staging: usbip: remove unnecessary braces X-Git-Tag: firefly_0821_release~3680^2~674^2~756 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c46cb54db3a01223bdd457ead25d4a3582c0babe;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Kurt Kanzenbach Signed-off-by: Greg Kroah-Hartman --- 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;