Commit c4433247 authored by Hui Tang's avatar Hui Tang Committed by Herbert Xu
Browse files

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: default avatarHui Tang <tanghui20@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a2035904
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -322,7 +322,8 @@ static int hpre_alg_res_post_hf(struct hpre_ctx *ctx, struct hpre_sqe *sqe,
				void **kreq)
				void **kreq)
{
{
	struct hpre_asym_request *req;
	struct hpre_asym_request *req;
	int err, id, done;
	unsigned int err, done;
	int id;


#define HPRE_NO_HW_ERR		0
#define HPRE_NO_HW_ERR		0
#define HPRE_HW_TASK_DONE	3
#define HPRE_HW_TASK_DONE	3