Re: [PATCH v2] staging: rtl8723bs: use standard error codes in xmit init path

Bera Yüzlü
2026-04-05T16:48:27Z

On Sun, 5 Apr 2026 11:57:28 +0000, Hungyu Lin wrote:
> Replace the use of _SUCCESS/_FAIL return values with standard
> kernel return conventions (0 on success, negative errno on failure)
> in the xmit initialization path.
>
> Specifically:
> - rtw_os_xmit_resource_alloc() now returns 0 or -ENOMEM
> - rtw_alloc_hwxmits() now returns 0 or -ENOMEM
> - _rtw_init_xmit_priv() updated to propagate error codes and use
> direct truth checks instead of comparing with _FAIL
> - caller in os_intfs.c updated accordingly
>
> This improves error propagation and aligns the driver with
> kernel coding style.
>
> Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
> ---

Can't apply it to staging-next.