30 lines
878 B
Diff
30 lines
878 B
Diff
From 94eb6ed029e2ee01d57339beb6153b6627a9765b Mon Sep 17 00:00:00 2001
|
|
From: Weili Qian <qianweili@huawei.com>
|
|
Date: Mon, 10 Jul 2023 11:41:08 +0800
|
|
Subject: [PATCH 04/26] uadk/v1 - fix local variable type
|
|
|
|
The return type of 'wd_reg_read' is '__u32'. Therefore,
|
|
change the local variable 'ret' type from 'int' to '__u32'.
|
|
|
|
Signed-off-by: Weili Qian <qianweili@huawei.com>
|
|
---
|
|
v1/drv/hisi_rng_udrv.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/v1/drv/hisi_rng_udrv.c b/v1/drv/hisi_rng_udrv.c
|
|
index b86a948..09fa2c3 100644
|
|
--- a/v1/drv/hisi_rng_udrv.c
|
|
+++ b/v1/drv/hisi_rng_udrv.c
|
|
@@ -94,7 +94,7 @@ static int rng_read(struct rng_queue_info *info, struct wcrypto_rng_msg *msg)
|
|
__u32 max = msg->in_bytes;
|
|
__u32 currsize = 0;
|
|
int recv_count = 0;
|
|
- int val;
|
|
+ __u32 val;
|
|
|
|
do {
|
|
val = wd_reg_read((void *)((uintptr_t)info->mmio_base +
|
|
--
|
|
2.25.1
|
|
|