diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/rng.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/crypto/rng.h b/include/crypto/rng.h index a16fb10142bf..6e28ea5be9f1 100644 --- a/include/crypto/rng.h +++ b/include/crypto/rng.h | |||
@@ -103,8 +103,7 @@ static inline void crypto_free_rng(struct crypto_rng *tfm) | |||
103 | * This function fills the caller-allocated buffer with random numbers using the | 103 | * This function fills the caller-allocated buffer with random numbers using the |
104 | * random number generator referenced by the cipher handle. | 104 | * random number generator referenced by the cipher handle. |
105 | * | 105 | * |
106 | * Return: > 0 function was successful and returns the number of generated | 106 | * Return: 0 function was successful; < 0 if an error occurred |
107 | * bytes; < 0 if an error occurred | ||
108 | */ | 107 | */ |
109 | static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, | 108 | static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, |
110 | u8 *rdata, unsigned int dlen) | 109 | u8 *rdata, unsigned int dlen) |