From: Roel Kluin <12o3l@tiscali.nl> Date: Fri, 26 Oct 2007 21:54:35 +0000 (+0200) Subject: USB: Fix priority mistakes in drivers/usb/core/hub.c X-Git-Tag: MMI-PSA29.97-13-9~38236^2~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e2c5eea95cfe4f36d708e6f124d9ac050b19fa1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git USB: Fix priority mistakes in drivers/usb/core/hub.c Fixes priority mistakes similar to '!x & y' Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 036c3dea855e..13b326a13377 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -335,7 +335,7 @@ static void kick_khubd(struct usb_hub *hub) to_usb_interface(hub->intfdev)->pm_usage_cnt = 1; spin_lock_irqsave(&hub_event_lock, flags); - if (!hub->disconnected & list_empty(&hub->event_list)) { + if (!hub->disconnected && list_empty(&hub->event_list)) { list_add_tail(&hub->event_list, &hub_event_list); wake_up(&khubd_wait); }