Re: [PATCH 11/68] usb-core: Track if an endpoint has streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-11-15 at 16:06 +0100, Hans de Goede wrote:
> This is a preparation patch for adding support for bulk streams to usbfs.

> @@ -2086,19 +2097,30 @@ int usb_free_streams(struct usb_interface *interface,
>  {
>  	struct usb_hcd *hcd;
>  	struct usb_device *dev;
> -	int i;
> +	int i, ret;
>  
>  	dev = interface_to_usbdev(interface);
>  	hcd = bus_to_hcd(dev->bus);
>  	if (dev->speed != USB_SPEED_SUPER)
>  		return -EINVAL;
>  
> -	/* Streams only apply to bulk endpoints. */
> -	for (i = 0; i < num_eps; i++)
> -		if (!eps[i] || !usb_endpoint_xfer_bulk(&eps[i]->desc))

Why bother checking for the endpoint's type?

	Regards
		Oliver


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux