staging: r8188eu: get the rcv bulk pipe handle directly
authorMartin Kaiser <martin@kaiser.cx>
Fri, 26 Nov 2021 17:32:00 +0000 (18:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:11:33 +0000 (15:11 +0100)
commitad697c64350f64faabf98c851abb625b1b880116
tree0cfe73a129858f62ad540d52b3cbc9a80bc17d16
parent25b9bd7589109abcdc02a9e953c35f484037620e
staging: r8188eu: get the rcv bulk pipe handle directly

There's no point in calling ffaddr2pipehdl from rtw_read_port if the
endpoint address is constant. We can call usb_rcvbulkpipe ourselves
to get the pipe handle.

We can now remove RECV_BULK_IN_ADDR.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211126173205.21352-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/rtl8188e_recv.h
drivers/staging/r8188eu/os_dep/usb_ops_linux.c