On Mon, Aug 01, 2022 at 08:04:18PM +0000, James Cowgill wrote: > The SMCCC_RET_TRNG_NO_ENTROPY switch arm is never used because the > NO_ENTROPY return value is negative and negative values are handled > above the switch by immediately returning. > > Fix by handling errors using a default arm in the switch. > > Fixes: 0888d04b47a1 ("hwrng: Add Arm SMCCC TRNG based driver") > Signed-off-by: James Cowgill <james.cowgill@xxxxxxxxxx> > --- > drivers/char/hw_random/arm_smccc_trng.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt