at76c50x-usb: fix endpoint debug message

Make sure to use the current alternate setting, which may not be the
same as the first alternate setting, also when printing the number of
endpoints at probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Johan Hovold 2019-12-10 12:44:21 +01:00 committed by Kalle Valo
parent 8d9627b05b
commit af615abd15
1 changed files with 1 additions and 1 deletions

View File

@ -2236,7 +2236,7 @@ static int at76_alloc_urbs(struct at76_priv *priv,
at76_dbg(DBG_PROC_ENTRY, "%s: ENTER", __func__);
at76_dbg(DBG_URB, "%s: NumEndpoints %d ", __func__,
interface->altsetting[0].desc.bNumEndpoints);
interface->cur_altsetting->desc.bNumEndpoints);
ep_in = NULL;
ep_out = NULL;