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

Convert the function PHY_MACConfig8188E() 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-2-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