Skip to content

staging: rtl8723bs: Use scoped_guard for mutex handling

Erick Karanja linux-staging lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging: rtl8723bs: Replace manual mutex handling with scoped_guard()drivers/staging/rtl8723bs/core/rtw_cmd.c+6 -80 replies
2/2staging: rtl8723bs: Switch mutexes to scoped_guarddrivers/staging/rtl8723bs/core/rtw_pwrctrl.c+126 -1550 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/2] staging: rtl8723bs: Use scoped_guard for mutex handling

This patchset updates the rtl8723bs driver by replacing manual mutex lock and unlock operations with scoped_guard(), aiming to improve code clarity and safety through automatic resource management. This change makes the code more resilient to early returns and error paths.

Erick Karanja (2):
staging: rtl8723bs: Replace manual mutex handling with scoped_guard()
staging: rtl8723bs: Switch mutexes to scoped_guard

 drivers/staging/rtl8723bs/core/rtw_cmd.c     |  14 +-
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 281 +++++++++----------
 2 files changed, 132 insertions(+), 163 deletions(-)
Signature · 1 line
2.43.0