Skip to content

Commit

Permalink
USB: ehci-hub: Remove redundant ehci->debug check
Browse files Browse the repository at this point in the history
No need to check ehci->debug twice.

Found-by: Sergei Shtylyov sshtylyov@ru.mvista.com
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jason Wessel authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 38fcb83 commit 872d359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
}

if (unlikely(ehci->debug)) {
if (ehci->debug && !dbgp_reset_prep())
if (!dbgp_reset_prep())
ehci->debug = NULL;
else
dbgp_external_startup();
Expand Down

0 comments on commit 872d359

Please sign in to comment.