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:
parent
5133ac8af4
commit
58b0c8f4b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue