Re: [PATCH v2] fs: exfat: improve error code handling in exfat_find_empty_entry()
From: Namjae Jeon
Date: Sat Dec 06 2025 - 05:44:36 EST
On Fri, Dec 5, 2025 at 10:59 AM Haotian Zhang <vulab@xxxxxxxxxxx> wrote:
>
> Change the type of 'ret' from unsigned int to int in
> exfat_find_empty_entry(). Although the implicit type conversion
> (int -> unsigned int -> int) does not cause actual bugs in
> practice, using int directly is more appropriate for storing
> error codes returned by exfat_alloc_cluster().
>
> This improves code clarity and consistency with standard error
> handling practices.
>
> Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
Applied it to #dev.
Thanks!