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

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