diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2009-09-23 19:32:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 14:55:13 -0500 |
commit | 872d3599622702b59a00521c0a5b8ff3822e1803 (patch) | |
tree | 4fb4b438bdcd0f53812ed39f7a04cf94d95e3183 /drivers/usb/host | |
parent | 38fcb8309964b94d0c0499982583d7f30b40abec (diff) |
USB: ehci-hub: Remove redundant ehci->debug check
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index 1b6f1c0e5cee..2c6571c05f35 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
@@ -236,7 +236,7 @@ static int ehci_bus_resume (struct usb_hcd *hcd) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | if (unlikely(ehci->debug)) { | 238 | if (unlikely(ehci->debug)) { |
239 | if (ehci->debug && !dbgp_reset_prep()) | 239 | if (!dbgp_reset_prep()) |
240 | ehci->debug = NULL; | 240 | ehci->debug = NULL; |
241 | else | 241 | else |
242 | dbgp_external_startup(); | 242 | dbgp_external_startup(); |