Skip to content

Commit 2e2c5ee

Browse files
Roel Kluingregkh
authored andcommitted
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 <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent f09e495 commit 2e2c5ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/usb/core/hub.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static void kick_khubd(struct usb_hub *hub)
335335
to_usb_interface(hub->intfdev)->pm_usage_cnt = 1;
336336

337337
spin_lock_irqsave(&hub_event_lock, flags);
338-
if (!hub->disconnected & list_empty(&hub->event_list)) {
338+
if (!hub->disconnected && list_empty(&hub->event_list)) {
339339
list_add_tail(&hub->event_list, &hub_event_list);
340340
wake_up(&khubd_wait);
341341
}

0 commit comments

Comments
 (0)