summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-hub.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2009-09-24 03:32:44 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 22:55:13 +0300
commit872d3599622702b59a00521c0a5b8ff3822e1803 (patch)
tree4fb4b438bdcd0f53812ed39f7a04cf94d95e3183 /drivers/usb/host/ehci-hub.c
parent38fcb8309964b94d0c0499982583d7f30b40abec (diff)
downloadlinux-872d3599622702b59a00521c0a5b8ff3822e1803.tar.xz
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/ehci-hub.c')
-rw-r--r--drivers/usb/host/ehci-hub.c2
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)
}
if (unlikely(ehci->debug)) {
- if (ehci->debug && !dbgp_reset_prep())
+ if (!dbgp_reset_prep())
ehci->debug = NULL;
else
dbgp_external_startup();