aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-02-17 16:30:58 -0800
committerBrian Behlendorf <[email protected]>2009-02-17 16:30:58 -0800
commit15dc8b072e77cf69b36e3df94782af4801d5e8cc (patch)
tree1f7e691c80667d7e78501f6b965b14c2d8ab6895 /include/sys
parent014b1d6f54dc7236a7572533f9e72ec459f1abd4 (diff)
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.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/random.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sys/random.h b/include/sys/random.h
index de386b634..2e206ccae 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;
}