From e535d52a740863ddd84d832dbf2f386d56135b3b Mon Sep 17 00:00:00 2001 From: zhangzhengming Date: Wed, 16 Jul 2025 20:56:14 +0800 Subject: [PATCH] mm/dynamic_pool: remove the meaningless ret print info in dpool_init h3c inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICMT32 -------------------------------- The dpool_init function contains a print statement for an uninitialized ret variable. Clean up the related print message. Fixes: cf98ffbc116b ("mm/dynamic_pool: fill dpool with pagelist") Signed-off-by: zhangzhengming --- mm/dynamic_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/dynamic_pool.c b/mm/dynamic_pool.c index 063fb6092401..1b79fb099cc9 100644 --- a/mm/dynamic_pool.c +++ b/mm/dynamic_pool.c @@ -1701,7 +1701,7 @@ int dpool_init(struct dpool_info *arg) dpool = dpool_create(arg->memcg, &pagelist_dpool_ops); if (!dpool) { - pr_err("init failed, create failed. ret: %d\n", ret); + pr_err("init failed, create failed.\n"); ret = -ENOMEM; goto unlock; } -- Gitee