projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0701049
)
drivers: usb: core: hcd: if-else-braces fixed
author
Matthias Beyer
<mail@beyermatthias.de>
Sat, 5 Oct 2013 16:02:10 +0000
(18:02 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 6 Oct 2013 01:00:08 +0000
(18:00 -0700)
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>
drivers/usb/core/hcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/hcd.c
b/drivers/usb/core/hcd.c
index 2a538ce08f9c29c40e262283b11b58eef6e4a16a..460bb59cb655a8021fa2ded743d9408ad5a32241 100644
(file)
--- 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);