]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: return an error code in rtw_usb_if1_init
authorMartin Kaiser <martin@kaiser.cx>
Sat, 30 Jul 2022 14:39:39 +0000 (16:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:13:56 +0000 (15:13 +0200)
commit890dfc5d89c272a1475f45c79d8b04ab438268d9
tree4e48d3bb82d43cb7e1c0d28b2a11b59fc0332937
parentc12563da228ceac960bc569cd460f5bcc702bece
staging: r8188eu: return an error code in rtw_usb_if1_init

rtw_usb_if1_init returns a pointer that isn't used by the caller. Return
an error code instead. We can then propagate errors from lower-level
functions like ReadAdapterInfo8188EU and fail the initialisation of the
driver with a proper error code.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220730143939.671951-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/usb_intf.c