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>
This commit is contained in:
Matthias Beyer 2013-10-10 23:41:27 +02:00 committed by Greg Kroah-Hartman
parent a91ccd26e7
commit 469271f8c4
4 changed files with 62 additions and 62 deletions

View File

@ -8,7 +8,7 @@
* (C) Copyright Deti Fliegl 1999 (new USB architecture) * (C) Copyright Deti Fliegl 1999 (new USB architecture)
* (C) Copyright Randy Dunlap 2000 * (C) Copyright Randy Dunlap 2000
* (C) Copyright David Brownell 2000-2001 (kernel hotplug, usb_device_id, * (C) Copyright David Brownell 2000-2001 (kernel hotplug, usb_device_id,
more docs, etc) * more docs, etc)
* (C) Copyright Yggdrasil Computing, Inc. 2000 * (C) Copyright Yggdrasil Computing, Inc. 2000
* (usb_device_id matching changes by Adam J. Richter) * (usb_device_id matching changes by Adam J. Richter)
* (C) Copyright Greg Kroah-Hartman 2002-2003 * (C) Copyright Greg Kroah-Hartman 2002-2003

View File

@ -2237,8 +2237,7 @@ static int usb_enumerate_device(struct usb_device *udev)
udev->product = kstrdup("n/a (unauthorized)", GFP_KERNEL); udev->product = kstrdup("n/a (unauthorized)", GFP_KERNEL);
udev->manufacturer = kstrdup("n/a (unauthorized)", GFP_KERNEL); udev->manufacturer = kstrdup("n/a (unauthorized)", GFP_KERNEL);
udev->serial = kstrdup("n/a (unauthorized)", GFP_KERNEL); udev->serial = kstrdup("n/a (unauthorized)", GFP_KERNEL);
} } else {
else {
/* read the standard strings and cache them if present */ /* read the standard strings and cache them if present */
udev->product = usb_cache_string(udev, udev->descriptor.iProduct); udev->product = usb_cache_string(udev, udev->descriptor.iProduct);
udev->manufacturer = usb_cache_string(udev, udev->manufacturer = usb_cache_string(udev,

View File

@ -398,7 +398,8 @@ static DEVICE_ATTR_RW(autosuspend);
static const char on_string[] = "on"; static const char on_string[] = "on";
static const char auto_string[] = "auto"; static const char auto_string[] = "auto";
static void warn_level(void) { static void warn_level(void)
{
static int level_warned; static int level_warned;
if (!level_warned) { if (!level_warned) {