]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drivers: usb: core: hcd: if-else-braces fixed
authorMatthias Beyer <mail@beyermatthias.de>
Sat, 5 Oct 2013 16:02:10 +0000 (18:02 +0200)
committerGreg 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

index 2a538ce08f9c29c40e262283b11b58eef6e4a16a..460bb59cb655a8021fa2ded743d9408ad5a32241 100644 (file)
@@ -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);