Merge remote-tracking branch 'sound-asoc/for-next'
[deliverable/linux.git] / drivers / char / hw_random / st-rng.c
index 1d35363d23c51929eff4d1924bed08684a6587cc..7e8aa6b7b45202600944dc5eecc27d32ca6515e3 100644 (file)
@@ -54,9 +54,6 @@ static int st_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
        u32 status;
        int i;
 
-       if (max < sizeof(u16))
-               return -EINVAL;
-
        /* Wait until FIFO is full - max 4uS*/
        for (i = 0; i < ST_RNG_FILL_FIFO_TIMEOUT; i++) {
                status = readl_relaxed(ddata->base + ST_RNG_STATUS_REG);
This page took 0.026546 seconds and 5 git commands to generate.