|
@@ -52,13 +52,6 @@ static int timeriomem_rng_read(struct hwrng *hwrng, void *data,
|
|
int retval = 0;
|
|
int retval = 0;
|
|
int period_us = ktime_to_us(priv->period);
|
|
int period_us = ktime_to_us(priv->period);
|
|
|
|
|
|
- /*
|
|
|
|
- * The RNG provides 32-bits per read. Ensure there is enough space for
|
|
|
|
- * at minimum one read.
|
|
|
|
- */
|
|
|
|
- if (max < sizeof(u32))
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* There may not have been enough time for new data to be generated
|
|
* There may not have been enough time for new data to be generated
|
|
* since the last request. If the caller doesn't want to wait, let them
|
|
* since the last request. If the caller doesn't want to wait, let them
|