usb_buf: Properly initialize buffered_endpoint->ep number

The number is used only in print statements, and it's always '0' so far.

Change-Id: Id147e24d9d50c274fec963f00494cb20e2360b33
This commit is contained in:
Harald Welte
2019-12-15 13:30:46 +01:00
parent b0b457df63
commit a812de808d

View File

@@ -101,5 +101,6 @@ void usb_buf_init(void)
for (i = 0; i < ARRAY_SIZE(usb_buffered_ep); i++) {
struct usb_buffered_ep *ep = &usb_buffered_ep[i];
INIT_LLIST_HEAD(&ep->queue);
ep->ep = i;
}
}