libwd/0090-uadk-sec-modify-improper-comments.patch
2023-12-08 11:56:44 +08:00

50 lines
1.4 KiB
Diff

From 5de69884dea416eea90b2f5a76ac1fcf1a70f8a9 Mon Sep 17 00:00:00 2001
From: Qi Tao <taoqi10@huawei.com>
Date: Thu, 30 Nov 2023 17:00:48 +0800
Subject: [PATCH 090/114] uadk\sec: modify improper comments.
Modify or delete improper comments in uadk/sec module.
Signed-off-by: Qi Tao <taoqi10@huawei.com>
---
wd_digest.c | 2 +-
wd_util.c | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/wd_digest.c b/wd_digest.c
index 2307bf1..bc67878 100644
--- a/wd_digest.c
+++ b/wd_digest.c
@@ -131,7 +131,7 @@ int wd_digest_set_key(handle_t h_sess, const __u8 *key, __u32 key_len)
int ret;
if (!key || !sess) {
- WD_ERR("failed to check key param!\n");
+ WD_ERR("invalid: failed to check input param, sess or key is NULL!\n");
return -WD_EINVAL;
}
diff --git a/wd_util.c b/wd_util.c
index a9640c3..d1d4037 100644
--- a/wd_util.c
+++ b/wd_util.c
@@ -408,7 +408,6 @@ void wd_uninit_async_request_pool(struct wd_async_msg_pool *pool)
pool->pool_num = 0;
}
-/* fix me: this is old wd_get_req_from_pool */
void *wd_find_msg_in_pool(struct wd_async_msg_pool *pool,
int ctx_idx, __u32 tag)
{
@@ -1344,7 +1343,6 @@ static struct async_task_queue *find_async_queue(struct wd_env_config *config,
return head + offset;
}
-/* fix me: all return value here, and no config input */
int wd_add_task_to_async_queue(struct wd_env_config *config, __u32 idx)
{
struct async_task_queue *task_queue;
--
2.25.1