[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240825075017.WNpBd0l7@linutronix.de>
Date: Sun, 25 Aug 2024 09:50:17 +0200
From: Nam Cao <namcao@...utronix.de>
To: Riyan Dhiman <riyandhiman14@...il.com>
Cc: gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
linux-staging@...ts.linux.dev
Subject: Re: [PATCH] staging: vme_user: Change slot number type from int to
u32
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
Powered by blists - more mailing lists