This series cleans up LPS_RF_ON_check().
Patch 1 simplifies the control flow by removing the err + break
pattern and using direct returns.
Patch 2 converts the function to use standard kernel error codes.
No functional changes intended.
v2:
- Drop unrelated comment formatting changes from patch 1
Hungyu Lin (2):
staging: rtl8723bs: simplify LPS_RF_ON_check control flow
staging: rtl8723bs: convert LPS_RF_ON_check to errno
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 26 +++++++------------
.../staging/rtl8723bs/include/rtw_pwrctrl.h | 2 +-
2 files changed, 11 insertions(+), 17 deletions(-)
--
2.34.1