diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2013-10-10 17:41:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-11 20:02:37 -0400 |
commit | 469271f8c48f12efc63a49b5bb388a754c957a0b (patch) | |
tree | 8e7370505fa64cc71c30cac105ef4443009580a7 /drivers/usb/core/sysfs.c | |
parent | a91ccd26e75235d86248d018fe3779732bcafd8d (diff) |
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.c | 5 |
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); | |||
398 | static const char on_string[] = "on"; | 398 | static const char on_string[] = "on"; |
399 | static const char auto_string[] = "auto"; | 399 | static const char auto_string[] = "auto"; |
400 | 400 | ||
401 | static void warn_level(void) { | 401 | static void warn_level(void) |
402 | { | ||
402 | static int level_warned; | 403 | static int level_warned; |
403 | 404 | ||
404 | if (!level_warned) { | 405 | if (!level_warned) { |
@@ -652,7 +653,7 @@ static ssize_t authorized_store(struct device *dev, | |||
652 | result = usb_deauthorize_device(usb_dev); | 653 | result = usb_deauthorize_device(usb_dev); |
653 | else | 654 | else |
654 | result = usb_authorize_device(usb_dev); | 655 | result = usb_authorize_device(usb_dev); |
655 | return result < 0? result : size; | 656 | return result < 0 ? result : size; |
656 | } | 657 | } |
657 | static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR, | 658 | static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR, |
658 | authorized_show, authorized_store); | 659 | authorized_show, authorized_store); |