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 +