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>
This commit is contained in:
Hui Tang 2021-04-10 17:47:00 +08:00 committed by Herbert Xu
parent a2035904f0
commit c4433247d9
1 changed files with 2 additions and 1 deletions

View File

@ -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