Re: [PATCH] tty: xtensa/iss: Use umin() to fix Coccinelle warning

From: Max Filippov
Date: Wed Apr 03 2024 - 22:11:02 EST


On Wed, Apr 3, 2024 at 4:48 PM Thorsten Blum <thorsten.blum@xxxxxxxxxx> wrote:
>
> Use unsigned size_t to improve len data type and umin() to fix the
> following Coccinelle/coccicheck warning reported by minmax.cocci:
>
> WARNING opportunity for min()
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
> ---
> arch/xtensa/platforms/iss/console.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)

Thanks. Applied to my xtensa tree.

-- Max