]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
keys: Remove redundant less-than-zero checks
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 11 Oct 2025 14:48:24 +0000 (16:48 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 27 Nov 2025 21:50:20 +0000 (23:50 +0200)
commit58b46219bfcf1906b795307372b0d50d65115026
treea90c28ee27a5ab0244cf178891f51ebcdaf73f64
parente1afacb68573c3cd0a3785c6b0508876cd3423bc
keys: Remove redundant less-than-zero checks

The local variables 'size_t datalen' are unsigned and cannot be less
than zero. Remove the redundant conditions.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/big_key.c
security/keys/encrypted-keys/encrypted.c
security/keys/trusted-keys/trusted_core.c
security/keys/user_defined.c