mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: rtl8723bs: cleanup LPS_RF_ON_check
@ 2026-05-21 10:43 Hungyu Lin
  2026-05-21 10:43 ` [PATCH v2 1/2] staging: rtl8723bs: simplify LPS_RF_ON_check control flow Hungyu Lin
  2026-05-21 10:43 ` [PATCH v2 2/2] staging: rtl8723bs: convert LPS_RF_ON_check to errno Hungyu Lin
  0 siblings, 2 replies; 3+ messages in thread
From: Hungyu Lin @ 2026-05-21 10:43 UTC (permalink / raw)
  To: gregkh; +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.

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


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

end of thread, other threads:[~2026-05-21 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-21 10:43 [PATCH v2 0/2] staging: rtl8723bs: cleanup LPS_RF_ON_check Hungyu Lin
2026-05-21 10:43 ` [PATCH v2 1/2] staging: rtl8723bs: simplify LPS_RF_ON_check control flow Hungyu Lin
2026-05-21 10:43 ` [PATCH v2 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

all inboxes | Powered by JetHome®