]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
char/adi: Remove redundant less-than-zero check in adi_write()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 3 Sep 2025 20:23:51 +0000 (22:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 14:00:36 +0000 (16:00 +0200)
commit656a48c49a4a8a3685538dfaa2f37831b8213461
treed3795131d9845e85090a1b92cf9b687f73f04fd0
parent6b26053819dccc664120e07c56f107fb6f72f3fa
char/adi: Remove redundant less-than-zero check in adi_write()

The function parameter 'size_t count' is unsigned and cannot be less
than zero. Remove the redundant condition.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250903202350.182446-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/adi.c