staging: r8188eu: convert rtw_writeN() to common error logic
authorMichael Straube <straube.linux@gmail.com>
Sun, 8 Jan 2023 12:38:04 +0000 (13:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:35:22 +0000 (19:35 +0100)
commit1d0d77f4ec011d0a05d5a2a1189f3d4d89e2b402
treeb26f17cce4b7776dbb4090f14cc5e6896abe7ed1
parent5877852e9f959483202cb2a7d55e7f5f13b76208
staging: r8188eu: convert rtw_writeN() to common error logic

Convert the function rtw_writeN() away from returning _FAIL or
_SUCCESS which uses inverted error logic. Use the common error logic
instead. Return 0 for success and negative values for failure.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230108123804.3754-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_fw.c
drivers/staging/r8188eu/hal/usb_ops_linux.c