summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHui Tang <tanghui20@huawei.com>2021-04-10 12:47:00 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-16 14:16:34 +0300
commitc4433247d91f5e1fe2c8db6b09288d7a0808037c (patch)
tree57aafdbaf7be3b600e14a59abc84000ae9d4e503 /drivers/crypto
parenta2035904f012090e6d5362bd9e0fe35eb3a32eb1 (diff)
downloadlinux-c4433247d91f5e1fe2c8db6b09288d7a0808037c.tar.xz
crypto: hisilicon/hpre - use the correct variable type
The return value of 'le32_to_cpu' is unsigned, so change the variable type from 'int' to 'unsigned int'. Signed-off-by: Hui Tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/hisilicon/hpre/hpre_crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/hpre/hpre_crypto.c b/drivers/crypto/hisilicon/hpre/hpre_crypto.c
index e523ef70472d..e45e6a10d7a8 100644
--- a/drivers/crypto/hisilicon/hpre/hpre_crypto.c
+++ b/drivers/crypto/hisilicon/hpre/hpre_crypto.c
@@ -322,7 +322,8 @@ static int hpre_alg_res_post_hf(struct hpre_ctx *ctx, struct hpre_sqe *sqe,
void **kreq)
{
struct hpre_asym_request *req;
- int err, id, done;
+ unsigned int err, done;
+ int id;
#define HPRE_NO_HW_ERR 0
#define HPRE_HW_TASK_DONE 3