staging: r8188eu: convert phy_RF6052_Config_ParaFile() to common error logic
authorMichael Straube <straube.linux@gmail.com>
Sun, 15 Jan 2023 21:07:32 +0000 (22:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:39:02 +0000 (19:39 +0100)
commit8ece288b16f72508a664c3fe234b7e4208d06660
tree5285d33c7d0d9fef1e1a3506b0abb69650c49e96
parent6eacd2420a710b93ca45a001d5b7d7dc481e3078
staging: r8188eu: convert phy_RF6052_Config_ParaFile() to common error logic

Convert the function phy_RF6052_Config_ParaFile() 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/20230115210734.18610-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_rf6052.c
drivers/staging/r8188eu/hal/usb_halinit.c