staging: rtl8188eu: make rtw_usb_if1_init return a status
authorMartin Kaiser <martin@kaiser.cx>
Wed, 7 Apr 2021 17:05:31 +0000 (19:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Apr 2021 07:26:32 +0000 (09:26 +0200)
commit3fca1c763ed186bd84bc65c43bfcf9fea0eb91d0
tree4394b41e1b3859592558ea4416dd1b14889e579d
parent7a267097504f68ca4cd64fb1a80902a113230e1e
staging: rtl8188eu: make rtw_usb_if1_init return a status

Return an error status instead of the struct adapter that was allocated
and filled. This is more useful for the probe function, who calls
rtw_usb_if1_init.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210407170531.29356-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c