zfs/module/icp/algs
Richard Yao 8ef15f9322
Cleanup: Remove ineffective unsigned comparisons against 0
Coverity found a number of places where we either do MAX(unsigned, 0) or
do assertions that a unsigned variable is >= 0. These do nothing, so
let us drop them all.

It also found a spot where we do `if (unsigned >= 0 && ...)`. Let us
also drop the unsigned >= 0 check.

Reviewed-by: Neal Gompa <ngompa@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13871
2022-09-26 17:02:38 -07:00
..
aes Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
blake3 Cleanup: Remove ineffective unsigned comparisons against 0 2022-09-26 17:02:38 -07:00
edonr Fix -Wattribute-warning in edonr 2022-06-27 14:19:04 -07:00
modes Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
sha2 Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
skein Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00