diff options
-rw-r--r-- | crypto/ansi_cprng.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/ansi_cprng.c b/crypto/ansi_cprng.c index 027176a0e889..45bd2182cb36 100644 --- a/crypto/ansi_cprng.c +++ b/crypto/ansi_cprng.c | |||
@@ -193,9 +193,6 @@ static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, | |||
193 | int err; | 193 | int err; |
194 | 194 | ||
195 | 195 | ||
196 | if (nbytes < 0) | ||
197 | return -EINVAL; | ||
198 | |||
199 | spin_lock_bh(&ctx->prng_lock); | 196 | spin_lock_bh(&ctx->prng_lock); |
200 | 197 | ||
201 | err = -EINVAL; | 198 | err = -EINVAL; |