From: Petr Mladek Date: Fri, 19 Sep 2014 15:32:20 +0000 (+0200) Subject: usb: hub: rename hub_events() to hub_event() and handle only one event there X-Git-Tag: fixes-for-v3.18-merge-window~16^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb6e29248714d767d5338b8b82d286293e8a041a;p=pandora-kernel.git 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 Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed