summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2013-10-05 18:02:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-05 18:00:08 -0700
commitd1ddb0a6bb665dce10314bb5b9960e197e814820 (patch)
tree886e9ad7ea97904a3b0ec2271e7a5085ae08ea36
parent070104966cde138627fea8257ef278f7a0d1379b (diff)
downloadlinux-d1ddb0a6bb665dce10314bb5b9960e197e814820.tar.gz
linux-d1ddb0a6bb665dce10314bb5b9960e197e814820.tar.bz2
linux-d1ddb0a6bb665dce10314bb5b9960e197e814820.zip
drivers: usb: core: hcd: if-else-braces fixed
Put else keyword on same line as closing brace from if statement, added { } braces as the styleguide says. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/core/hcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 2a538ce08f9c..460bb59cb655 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -879,9 +879,9 @@ static ssize_t authorized_default_store(struct device *dev,
if (result == 1) {
usb_hcd->authorized_default = val ? 1 : 0;
result = size;
- }
- else
+ } else {
result = -EINVAL;
+ }
return result;
}
static DEVICE_ATTR_RW(authorized_default);