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

This series cleans up the command enqueue path in rtw_cmd.c.

Patch 1 simplifies the control flow of _rtw_enqueue_cmd() by
removing the goto exit pattern and using direct returns.

Patch 2 limits the scope of _rtw_enqueue_cmd() by making it static
and removing its declaration from the header.

Patch 3 simplifies the control flow of rtw_enqueue_cmd() by removing
the goto exit pattern.

Patch 4 converts the private helper _rtw_enqueue_cmd() to return 0 on
success, while keeping rtw_enqueue_cmd() translating the result to
the existing legacy return convention.

No functional changes intended.

Hungyu Lin (4):
  staging: rtl8723bs: simplify _rtw_enqueue_cmd control flow
  staging: rtl8723bs: make _rtw_enqueue_cmd static
  staging: rtl8723bs: simplify rtw_enqueue_cmd control flow
  staging: rtl8723bs: make _rtw_enqueue_cmd return 0 on success

 drivers/staging/rtl8723bs/core/rtw_cmd.c      | 20 +++++++++----------
 drivers/staging/rtl8723bs/include/cmd_osdep.h |  1 -
 2 files changed, 10 insertions(+), 11 deletions(-)

-- 
2.34.1


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 21:37 [PATCH 0/4] staging: rtl8723bs: cleanup rtw_enqueue_cmd flow Hungyu Lin
2026-05-13 21:37 ` [PATCH 1/4] staging: rtl8723bs: simplify _rtw_enqueue_cmd control flow Hungyu Lin
2026-05-13 21:37   ` [PATCH 2/4] staging: rtl8723bs: make _rtw_enqueue_cmd static Hungyu Lin
2026-05-13 21:37     ` [PATCH 3/4] staging: rtl8723bs: simplify rtw_enqueue_cmd control flow Hungyu Lin
2026-05-13 21:37       ` [PATCH 4/4] staging: rtl8723bs: make _rtw_enqueue_cmd return 0 on success Hungyu Lin

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