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

Replace the driver-specific _SUCCESS and _FAIL error codes in
rtw_read_port. 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-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/rtw_io.h