Re: [PATCH] staging: vme_user: Change slot number type from int to u32
From: Nam Cao
Date: Sun Aug 25 2024 - 03:50:33 EST
On Sun, Aug 25, 2024 at 12:59:55PM +0530, Riyan Dhiman wrote:
> Change the type used for VME slot numbers from int to u32 throughout vme
> driver. This modification more accurately represents the nature of slot
> numbers which are always non-negative.
>
> The changes include
> - Updating variable declarations
> - Modifying function signatures and return types
>
> This change imporves type safety, prevents potential issues with sign conversion.
Signed integer may be used to encode both non-negative valid values and
negative error code.
Are you sure none of the changed functions ever return a negative error
code?
Best regards,
Nam