From 72e69f204e23ff415b76cc498349bdaef5c8a46a Mon Sep 17 00:00:00 2001 From: Qi Tao Date: Thu, 30 Nov 2023 17:00:48 +0800 Subject: [PATCH 099/123] uadk\sec: modify improper comments. Modify or delete improper comments in uadk/sec module. Signed-off-by: Qi Tao --- 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 e523331..3cbb828 100644 --- a/wd_digest.c +++ b/wd_digest.c @@ -132,7 +132,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 989c99a..2d3cbbb 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.31.1.windows.1