From: Jason Wessel Date: Wed, 23 Sep 2009 23:32:44 +0000 (-0500) Subject: USB: ehci-hub: Remove redundant ehci->debug check X-Git-Tag: v2.6.33-rc1~315^2~120 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=872d3599622702b59a00521c0a5b8ff3822e1803;p=net-next-2.6.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index 1b6f1c0e5ce..2c6571c05f3 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();