staging: r8188eu: clean up the usb_writeN
authorMartin Kaiser <martin@kaiser.cx>
Sat, 21 Aug 2021 16:48:57 +0000 (18:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:17:01 +0000 (12:17 +0200)
commit22d0d6104e4d6c7d86ade11888422762db15ab75
treee89b8f78ca759d56883f6f08687c887e4053664b
parente8baed3c765e0f88f4107c52a3505f52d174b41f
staging: r8188eu: clean up the usb_writeN

Remove unnecessary variables, check the length.

Acked-by: Michael Straube <straube.linux@gmail.com>
Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210821164859.4351-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c