[PATCH 0/2] staging: rtl8723bs: Use scoped_guard for mutex handling

From: Erick Karanja
Date: Thu Apr 24 2025 - 15:56:44 EST


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(-)

--
2.43.0