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)
commit00856e5391fbfbe00bf641a39f1bf8d1a144367a
tree6ea76804b9d20af33f523d7b829e51267ddba08e
parentce6330f74b08c8cbb2e3c04bd31cbace3de20660
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