Unverified Commit 7bd67955 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8277 usb: udc: remove warning when queue disabled ep

parents d3b4958d 629054cf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -273,7 +273,9 @@ int usb_ep_queue(struct usb_ep *ep,
{
	int ret = 0;

	if (WARN_ON_ONCE(!ep->enabled && ep->address)) {
	if (!ep->enabled && ep->address) {
		pr_debug("USB gadget: queue request to disabled ep 0x%x (%s)\n",
				 ep->address, ep->name);
		ret = -ESHUTDOWN;
		goto out;
	}