Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v4 0/4] staging: rtl8723bs: convert update_attrib path to errno
@ 2026-07-07 11:24 Hungyu Lin
  2026-07-07 11:25 ` [PATCH v4 1/4] staging: rtl8723bs: simplify update_attrib_sec_info control flow Hungyu Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hungyu Lin @ 2026-07-07 11:24 UTC (permalink / raw)
  To: gregkh
  Cc: error27, khomenkov, khushalchitturi, s9430939, marcosandrade95963,
	linux-staging, linux-kernel, Hungyu Lin

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

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-07 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07 11:24 [PATCH v4 0/4] staging: rtl8723bs: convert update_attrib path to errno Hungyu Lin
2026-07-07 11:25 ` [PATCH v4 1/4] staging: rtl8723bs: simplify update_attrib_sec_info control flow Hungyu Lin
2026-07-07 11:25 ` [PATCH v4 2/4] staging: rtl8723bs: simplify update_attrib " Hungyu Lin
2026-07-07 11:25 ` [PATCH v4 3/4] staging: rtl8723bs: convert update_attrib_sec_info to return errno Hungyu Lin
2026-07-07 11:25 ` [PATCH v4 4/4] staging: rtl8723bs: convert update_attrib " Hungyu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox