提交 872d3599 编写于 作者: J Jason Wessel 提交者: Greg Kroah-Hartman

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: NJason Wessel <jason.wessel@windriver.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 38fcb830
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册