usb: hub: rename hub_events() to hub_event() and handle only one event there
authorPetr Mladek <pmladek@suse.cz>
Fri, 19 Sep 2014 15:32:20 +0000 (17:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 05:31:12 +0000 (22:31 -0700)
commiteb6e29248714d767d5338b8b82d286293e8a041a
tree338b633a4ff70da536a56b42fbf63e7164e4d257
parent5d14f323834eeb0cd428bcec4a9cd8d8839467fb
usb: hub: rename hub_events() to hub_event() and handle only one event there

We would like to convert khubd kthread to a workqueue. As a result hub_events()
will handle only one event per call.

In fact, we could do this already now because there is another cycle in
hub_thread(). It calls hub_events() until hub_event_list is empty.

This patch renames the function to hub_event(), removes the while cycle, and
renames the goto targets from loop* to out*.

When touching the code, it fixes also formatting of dev_err() and dev_dbg()
calls to make checkpatch.pl happy :-)

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c