--- zzzz-none-000/linux-4.4.60/drivers/usb/gadget/function/f_midi.c 2017-04-08 07:53:53.000000000 +0000 +++ jet-2400-727/linux-4.4.60/drivers/usb/gadget/function/f_midi.c 2021-03-17 14:36:41.000000000 +0000 @@ -201,12 +201,6 @@ return alloc_ep_req(ep, length, length); } -static void free_ep_req(struct usb_ep *ep, struct usb_request *req) -{ - kfree(req->buf); - usb_ep_free_request(ep, req); -} - static const uint8_t f_midi_cin_length[] = { 0, 0, 2, 3, 3, 1, 2, 3, 3, 3, 3, 3, 2, 2, 3, 1 };