Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e2c5eea authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

USB: Fix priority mistakes in drivers/usb/core/hub.c



Fixes priority mistakes similar to '!x & y'

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f09e495d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -335,7 +335,7 @@ static void kick_khubd(struct usb_hub *hub)
	to_usb_interface(hub->intfdev)->pm_usage_cnt = 1;
	to_usb_interface(hub->intfdev)->pm_usage_cnt = 1;


	spin_lock_irqsave(&hub_event_lock, flags);
	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);
		list_add_tail(&hub->event_list, &hub_event_list);
		wake_up(&khubd_wait);
		wake_up(&khubd_wait);
	}
	}