entropy: neorv32: Return ENODATA on error

Return -ENODATA in neorv32_trng_get_entropy_isr when
there is no data available. This is consistent with other
drivers.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2023-10-05 20:32:05 +00:00 committed by Carles Cufí
parent 5133ac8af4
commit 58b0c8f4b7

View file

@ -69,7 +69,7 @@ static int neorv32_trng_get_entropy_isr(const struct device *dev, uint8_t *buffe
}
/* No entropy available */
return 0;
return -ENODATA;
}
err = neorv32_trng_get_entropy(dev, buffer, len);