[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aefc0a7e-e697-465a-96bc-0d700f16a3cf@roeck-us.net>
Date: Sun, 31 Aug 2025 15:24:53 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Qianfeng Rong <rongqianfeng@...o.com>
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwmon: (nct6775) Use int type to store negative error
codes
On Sat, Aug 30, 2025 at 05:51:05PM +0800, Qianfeng Rong wrote:
> Change the 'ret' variable from u32 to int in nct6775_asuswmi_read() to
> store negative error codes or zero;
>
> Storing the negative error codes in unsigned type, doesn't cause an issue
> at runtime but can be confusing. Additionally, assigning negative error
> codes to unsigned type may trigger a GCC warning when the -Wsign-conversion
> flag is enabled.
>
> No effect on runtime.
>
> Signed-off-by: Qianfeng Rong <rongqianfeng@...o.com>
Applied.
Guenter
Powered by blists - more mailing lists