From: Brian Behlendorf Date: Wed, 18 Feb 2009 00:30:58 +0000 (-0800) Subject: Coverity 9652, 9653: No Effect X-Git-Tag: spl-0.4.3~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15dc8b072e77cf69b36e3df94782af4801d5e8cc;p=spl Coverity 9652, 9653: No Effect Removed 2 ASSERT()s which had no effect because by definition size_t is always an unsigned type thus is always >= 0. --- diff --git a/include/sys/random.h b/include/sys/random.h index de386b6..2e206cc 100644 --- a/include/sys/random.h +++ b/include/sys/random.h @@ -43,7 +43,6 @@ extern "C" { static __inline__ int random_get_bytes(uint8_t *ptr, size_t len) { - ASSERT(len >= 0); get_random_bytes((void *)ptr,(int)len); return 0; } @@ -52,7 +51,6 @@ random_get_bytes(uint8_t *ptr, size_t len) static __inline__ int random_get_pseudo_bytes(uint8_t *ptr, size_t len) { - ASSERT(len >= 0); get_random_bytes((void *)ptr,(int)len); return 0; }