staging: r8188eu: use standard error codes in rtl8188eu_inirp_init
authorMartin Kaiser <martin@kaiser.cx>
Mon, 6 Feb 2023 20:17:57 +0000 (21:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:41:03 +0000 (08:41 +0100)
commita0b3a1c269d32a0d96b50de4b2a301add847b3cf
tree58291a418ffd284ae44a4fcf7da815ef16a77517
parent972b28a485a31e683050a00e1999d49d9bb8b822
staging: r8188eu: use standard error codes in rtl8188eu_inirp_init

Replace the driver-specific _SUCCESS and _FAIL error codes in
rtl8188eu_inirp_init. Return 0 for success or a negative error
code as we do elsewhere in the kernel.

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