mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
usb: gadget: remove useless parameter in alloc_ep_req()
The default_length parameter of alloc_ep_req was not really necessary and gadget drivers would almost always create an inline function to pass the same value to len and default_len. This patch removes that parameter and updates all calls to alloc_ep_req() to use the new API. Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
committed by
Felipe Balbi
parent
06281d460f
commit
aadbe81246
@@ -308,9 +308,7 @@ static void disable_loopback(struct f_loopback *loop)
|
||||
|
||||
static inline struct usb_request *lb_alloc_ep_req(struct usb_ep *ep, int len)
|
||||
{
|
||||
struct f_loopback *loop = ep->driver_data;
|
||||
|
||||
return alloc_ep_req(ep, len, loop->buflen);
|
||||
return alloc_ep_req(ep, len);
|
||||
}
|
||||
|
||||
static int alloc_requests(struct usb_composite_dev *cdev,
|
||||
@@ -333,7 +331,7 @@ static int alloc_requests(struct usb_composite_dev *cdev,
|
||||
if (!in_req)
|
||||
goto fail;
|
||||
|
||||
out_req = lb_alloc_ep_req(loop->out_ep, 0);
|
||||
out_req = lb_alloc_ep_req(loop->out_ep, loop->buflen);
|
||||
if (!out_req)
|
||||
goto fail_in;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user