Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: rtl8723bs: cleanup LPS_RF_ON_check
@ 2026-05-12  3:04 Hungyu Lin
  2026-05-12  3:04 ` [PATCH 1/2] staging: rtl8723bs: simplify LPS_RF_ON_check control flow Hungyu Lin
  0 siblings, 1 reply; 3+ messages in thread
From: Hungyu Lin @ 2026-05-12  3:04 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Dan Carpenter, linux-staging, linux-kernel, Hungyu Lin

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.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-12  3:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  3:04 [PATCH 0/2] staging: rtl8723bs: cleanup LPS_RF_ON_check Hungyu Lin
2026-05-12  3:04 ` [PATCH 1/2] staging: rtl8723bs: simplify LPS_RF_ON_check control flow Hungyu Lin
2026-05-12  3:04   ` [PATCH 2/2] staging: rtl8723bs: convert LPS_RF_ON_check to errno Hungyu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox