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.
This commit is contained in:
parent
014b1d6f54
commit
15dc8b072e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue