staging: r8188eu: convert rtw_init_evt_priv() to common error logic
authorMichael Straube <straube.linux@gmail.com>
Sun, 2 Oct 2022 07:48:24 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:19:37 +0000 (17:19 +0200)
commitef2a2422ab86d99e0bfd940c38c60b77c9ad9954
tree9c2063c61f366ecf13110af4147dedc1748e911b
parent11247c998b00298e9b621f3121380494146c40ff
staging: r8188eu: convert rtw_init_evt_priv() to common error logic

Convert the function rtw_init_evt_priv() to common kernel error logic.
Return 0 on success and negative value on failure. This is part of
getting rid of returning _SUCCESS and _FAIL which uses inverted error
logic and is used all over the driver.

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/20221002074827.8566-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c
drivers/staging/r8188eu/include/rtw_cmd.h
drivers/staging/r8188eu/os_dep/os_intfs.c