aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/sysfs.c
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2013-10-10 23:41:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-11 17:02:37 -0700
commit469271f8c48f12efc63a49b5bb388a754c957a0b (patch)
tree8e7370505fa64cc71c30cac105ef4443009580a7 /drivers/usb/core/sysfs.c
parentUSB: mos7840: fix tiocmget error handling (diff)
downloadlinux-dev-469271f8c48f12efc63a49b5bb388a754c957a0b.tar.xz
linux-dev-469271f8c48f12efc63a49b5bb388a754c957a0b.zip
drivers: usb: core: {file,hub,sysfs,usb}.c: Whitespace fixes
including: - removing of trailing whitespace - removing spaces before array indexing (foo [] to foo[]) - reindention of a switch-case block - spaces to tabs Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/sysfs.c')
-rw-r--r--drivers/usb/core/sysfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index 59cb5f99467a..5cf431b0424c 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -398,7 +398,8 @@ static DEVICE_ATTR_RW(autosuspend);
static const char on_string[] = "on";
static const char auto_string[] = "auto";
-static void warn_level(void) {
+static void warn_level(void)
+{
static int level_warned;
if (!level_warned) {
@@ -652,7 +653,7 @@ static ssize_t authorized_store(struct device *dev,
result = usb_deauthorize_device(usb_dev);
else
result = usb_authorize_device(usb_dev);
- return result < 0? result : size;
+ return result < 0 ? result : size;
}
static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR,
authorized_show, authorized_store);