Skip to content

staging: rtl8723bs: convert update_attrib path to errno

Hungyu Lin linux-staging lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v3 posting 2/21 of 4 patches 0 repliesSuperseded
  3. v3 posting 1/23 of 4 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches1 replySuperseded
v14 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Resend the complete series as requested by Greg KH
- No code changes

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: rtl8723bs: simplify update_attrib_sec_info control flowdrivers/staging/rtl8723bs/core/rtw_xmit.c+5 -120 replies
2/4staging: rtl8723bs: simplify update_attrib control flowdrivers/staging/rtl8723bs/core/rtw_xmit.c+7 -150 replies
3/4staging: rtl8723bs: convert update_attrib_sec_info to return errnodrivers/staging/rtl8723bs/core/rtw_xmit.c+6 -50 replies
4/4staging: rtl8723bs: convert update_attrib to return errnodrivers/staging/rtl8723bs/core/rtw_xmit.c+10 -110 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/4] staging: rtl8723bs: convert update_attrib path to errno

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 v4:
- Resend the complete series as requested by Greg KH
- No code changes

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