Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdc1c45c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_qdss: Remove queuing of ZLP"

parents 6708b7c7 7f2d1d60
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -237,18 +237,6 @@ static void qdss_write_complete(struct usb_ep *ep,
		state = USB_QDSS_DATA_WRITE_DONE;
	}

	if (!req->status) {
		/* send zlp */
		if ((req->length >= ep->maxpacket) &&
				((req->length % ep->maxpacket) == 0)) {
			req->length = 0;
			d_req->actual = req->actual;
			d_req->status = req->status;
			if (!usb_ep_queue(in, req, GFP_ATOMIC))
				return;
		}
	}

	spin_lock_irqsave(&qdss->lock, flags);
	list_add_tail(&req->list, list_pool);
	if (req->length != 0) {