projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a203590
)
crypto: hisilicon/hpre - use the correct variable type
author
Hui Tang
<tanghui20@huawei.com>
Sat, 10 Apr 2021 09:47:00 +0000
(17:47 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 16 Apr 2021 11:16:34 +0000
(21:16 +1000)
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>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/hpre/hpre_crypto.c
b/drivers/crypto/hisilicon/hpre/hpre_crypto.c
index
e523ef7
..
e45e6a1
100644
(file)
--- 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