]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/trng - fix local variable type
authorWeili Qian <qianweili@huawei.com>
Thu, 9 Jun 2022 11:18:19 +0000 (19:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Jun 2022 09:19:20 +0000 (17:19 +0800)
commit2ac4a726aaa1148f9be04595605740e6134746ce
tree6ea76804b9d20af33f523d7b829e51267ddba08e
parent25bb57fc0bd6ff6e7a77db8c5cd8529780cf268d
crypto: hisilicon/trng - fix local variable type

The return value of 'readl_poll_timeout' is '0' or '-ETIMEDOUT'. Therefore,
change the local variable 'ret' type from 'u32' to 'int'.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/trng/trng.c