X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fcrypto%2Frng.h;h=6e28ea5be9f1264d685be72e00472ef6506a65c8;hb=96d928ed75c4ba4253e82910a697ec7b06ace8b4;hp=a16fb10142bf5bf7efe9210845ee75c0b4267744;hpb=3c01b74e818a7a3b2ee9b0d584cca0bc154a031c;p=firefly-linux-kernel-4.4.55.git 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) * This function fills the caller-allocated buffer with random numbers using the * random number generator referenced by the cipher handle. * - * Return: > 0 function was successful and returns the number of generated - * bytes; < 0 if an error occurred + * Return: 0 function was successful; < 0 if an error occurred */ static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen)