]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: xtensa/iss: Use min() to fix Coccinelle warning
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 4 Apr 2024 07:58:13 +0000 (09:58 +0200)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 4 Apr 2024 09:10:44 +0000 (02:10 -0700)
commit11cca8ccf2c3643d002e7b421acfdc847a627e9f
treebffbb14d16d5bed92b8089139682a0a3818d1d30
parent0e60f0b75884677fb9f4f2ad40d52b43451564d5
tty: xtensa/iss: Use min() to fix Coccinelle warning

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@toblux.com>
Message-Id: <20240404075811.6936-3-thorsten.blum@toblux.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/iss/console.c