Skip to content

staging: rtl8723bs: cleanup rtw_enqueue_cmd flow

Hungyu Lin linux-staging lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: rtl8723bs: simplify _rtw_enqueue_cmd control flowdrivers/staging/rtl8723bs/core/rtw_cmd.c+1 -20 replies
2/4staging: rtl8723bs: make _rtw_enqueue_cmd staticdrivers/staging/rtl8723bs/core/rtw_cmd.c drivers/staging/rtl8723bs/include/cmd_osdep.h+1 -20 replies
3/4staging: rtl8723bs: simplify rtw_enqueue_cmd control flowdrivers/staging/rtl8723bs/core/rtw_cmd.c+3 -40 replies
4/4staging: rtl8723bs: make _rtw_enqueue_cmd return 0 on successdrivers/staging/rtl8723bs/core/rtw_cmd.c+6 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] staging: rtl8723bs: cleanup rtw_enqueue_cmd flow

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(-)
Signature · 1 line
2.34.1