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

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

parents 3e1df672 4aff2e19
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;
	}