[PATCH v3 0/4] staging: rtl8723bs: convert update_attrib path to errno

From: Hungyu Lin

Date: Tue Jun 16 2026 - 19:53:07 EST


This series first simplifies control flow in update_attrib_sec_info()
and update_attrib() by replacing goto-based error handling with
direct returns. It then converts both functions to return errno
values and propagates the returned error codes through the caller
chain.

Changes in v3:
- Split update_attrib_sec_info() errno conversion from caller changes
- Keep update_attrib() using _FAIL in the intermediate step
- Convert update_attrib() and rtw_xmit() to propagate errno

Changes in v2:
- Keep braces around the multi-line if statement in update_attrib()
- Split errno conversion and propagation as suggested by Dan Carpenter
- Change update_attrib_sec_info() and update_attrib() return types to int

Hungyu Lin (4):
staging: rtl8723bs: simplify update_attrib_sec_info control flow
staging: rtl8723bs: simplify update_attrib control flow
staging: rtl8723bs: convert update_attrib_sec_info to return errno
staging: rtl8723bs: convert update_attrib to return errno

drivers/staging/rtl8723bs/core/rtw_xmit.c | 55 +++++++++--------------
1 file changed, 20 insertions(+), 35 deletions(-)

--
2.34.1