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

From: Max Filippov
Date: Thu Apr 04 2024 - 05:12:34 EST


On Thu, Apr 4, 2024 at 1:01 AM Thorsten Blum <thorsten.blum@xxxxxxxxxx> wrote:
>
> Inline strlen() and use min() to fix the following Coccinelle/coccicheck
> warning reported by minmax.cocci:
>
> WARNING opportunity for min()
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
> ---
> Changes in v2:
> - Use min() instead of umin() as suggested by Jiri Slaby
>
> Changes in v3:
> - Inline strlen() as suggested by Jiri Slaby
> ---
> arch/xtensa/platforms/iss/console.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)

Thanks. Applied to my xtensa tree.

-- Max