Skip to content

staging: rtl8723bs: modernize locking with cleanup.h

Samrudh Nelli 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: use guard(mutex) to simplify lockingdrivers/staging/rtl8723bs/core/rtw_pwrctrl.c+10 -230 replies
2/2staging: rtl8723bs: use scoped_guard() for mid-function lockingdrivers/staging/rtl8723bs/core/rtw_pwrctrl.c+54 -670 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: modernize locking with cleanup.h

This series modernizes the mutex locking in rtw_pwrctrl.c by utilizing the guard() and scoped_guard() macros introduced in cleanup.h.

Patch 1 converts functions where the lock is held until returning. Patch 2 converts functions where the lock is dropped mid-execution.

Samrudh Nelli (2):
staging: rtl8723bs: use guard(mutex) to simplify locking
staging: rtl8723bs: use scoped_guard() for mid-function locking

 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 154 ++++++++-----------
 1 file changed, 64 insertions(+), 90 deletions(-)
Signature · 1 line
2.55.0