RE: [PATCH v2] wifi: rtw89: use int type to store negative error codes

From: Ping-Ke Shih
Date: Thu Aug 28 2025 - 20:32:37 EST


Qianfeng Rong <rongqianfeng@xxxxxxxx> wrote:
> The 'ret' variable stores returns from other functions, which return
> either zero on success or negative error codes on failure. Storing
> error codes in u32 (an unsigned type) causes no runtime issues but is
> stylistically inconsistent and very ugly. Change 'ret' from u32 to
> int - this has no runtime impact.
>
> Signed-off-by: Qianfeng Rong <rongqianfeng@xxxxxxxx>

Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>