Commit 2ddf7617 authored by Vincent Mailhol's avatar Vincent Mailhol Committed by Greg Kroah-Hartman
Browse files

usb: remove third argument of usb_maxpacket()



Now that all users of usb_maxpacket() have been migrated to only use
two arguments, remove the third variadic argument which was introduced
for the transition.

Signed-off-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220317035514.6378-9-mailhol.vincent@wanadoo.fr


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 80b2b03b
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1969,8 +1969,7 @@ usb_pipe_endpoint(struct usb_device *dev, unsigned int pipe)
	return eps[usb_pipeendpoint(pipe)];
	return eps[usb_pipeendpoint(pipe)];
}
}


static inline u16 usb_maxpacket(struct usb_device *udev, int pipe,
static inline u16 usb_maxpacket(struct usb_device *udev, int pipe)
				/* int is_out deprecated */ ...)
{
{
	struct usb_host_endpoint	*ep;
	struct usb_host_endpoint	*ep;
	unsigned			epnum = usb_pipeendpoint(pipe);
	unsigned			epnum = usb_pipeendpoint(pipe);