]> git.baikalelectronics.ru Git - kernel.git/commit
USB: remove excess code from hub.c
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 30 May 2007 19:35:16 +0000 (15:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:29 +0000 (16:34 -0700)
commit6a2e94276b17b770371f676dd39d0adaaeae4836
tree411f9288fcc640a1ae935144e950ad44765157ba
parent0ede819536bd433f3a280b0a0820fd0d1b39d9c3
USB: remove excess code from hub.c

This patch (as917) removes a now-unnecessary level of subroutine
nesting from hub.c.  Since usb_port_suspend() does nothing but call
hub_port_suspend(), and usb_port_resume() does nothing but call
hub_port_resume(), there's no reason to keep the routines separate.

Also included in the patch are a few cosmetic changes involving
whitespace and use of braces.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c